it(scenario.name, async () => {
            const oldSessionId = request.getSessionId()
            const hook = jest.fn()
            const browser = await remote({
                baseUrl: 'http://foobar.com',
                capabilities: {
                    jsonwpMode: scenario.jsonwpMode,
                    browserName: 'foobar'
                },
                onReload: [hook]
            })

            request.setSessionId(scenario.sessionIdMock)
            request.setMockResponse(scenario.requestMock)
            await browser.reloadSession()

            expect(request.mock.calls[1][0].method).toBe('DELETE')
            expect(request.mock.calls[1][0].uri.pathname).toBe(`/wd/hub/session/${oldSessionId}`)
            expect(request.mock.calls[2][0].method).toBe('POST')
            expect(request.mock.calls[2][0].uri.pathname).toBe('/wd/hub/session')
            expect(hook).toBeCalledWith(oldSessionId, scenario.newSessionId)
        })
 afterEach(() => {
     request.mockClear()
     request.resetSessionId()
     request.setMockResponse()
 })