    @Test
    public void testLogin_whenResponseIsValid_shouldReturnAConsent() throws Exception {

        Mockito.when(client.login(anyString(), anyString(), anyString(), anyString(), anyString(), any(BaseClient.CookieStorage.class))).thenReturn(consentFormHTML);
        assertThat(webFormHandler.login("app-id", "session-id", "session-data", "user", "password", cookieStorage))
                .isInstanceOf(BaseConsent.class);
    }