### Question:
WebFormClient extends BaseClient { public String consent(String appId, String sessionId, String sessionData, List<String> approvedScopes, CookieStorage cookieStorage) { RequestBody body = createConsentFormBody(appId, sessionId, sessionData, approvedScopes); Request.Builder builder = new Request.Builder() .url(getConsentUrl()) .post(body); Request request = addCookies(builder, cookieStorage.load()).build(); return executeAndGetBody(client, request); } WebFormClient(OAuthConfig config);   WebFormClient(OAuthConfig config, OkHttpClient client); String login(String appId, String sessionId, String sessionData, String username, String password, CookieStorage cookieStorage); String consent(String appId, String sessionId, String sessionData, List<String> approvedScopes, CookieStorage cookieStorage);  }### Answer:
@Test public void testConsent_whenCookieStorageIsProvided_shouldAddAvailableCookiesToHeaders() { Mockito.when(mockStorage.load()).thenReturn(Arrays.asList("cookie-1", "cookie-2")); webFormClient.consent("app-id", "session-id", "session-data", Arrays.asList("a", "b"), mockStorage); Mockito.verify(client, Mockito.times(1)).newCall(requestCaptor.capture()); assertThat(requestCaptor.getValue().headers(HttpHeaders.COOKIE)).contains("cookie-1", "cookie-2"); }