private void authorized(boolean isAuthorized, String destination) {
        when(request.getPathInfo()).thenReturn(destination);
        frontend.updateUserSession(new UserSession(TEST_USER, SSID, isAuthorized ? AccountServiceMessages.AUTHORIZED : "", isAuthorized ? 12L : null));
    }