### Question:
ConsorsAccountInformationService extends BaseAccountInformationService { @Override public Response<String> getTransactionListAsString(String accountId, RequestHeaders requestHeaders, RequestParams requestParams) { return getTransactionList(accountId, requestHeaders, requestParams) .map(jsonMapper::writeValueAsString); } ConsorsAccountInformationService(Aspsp aspsp,
                                            HttpClient httpClient,
                                            PsuIdHeaderInterceptor interceptor,
                                            LinksRewriter linksRewriter); @Override Response<TransactionsResponse200Json> getTransactionList(String accountId,
                                                                    RequestHeaders requestHeaders,
                                                                    RequestParams requestParams); @Override Response<String> getTransactionListAsString(String accountId,
                                                       RequestHeaders requestHeaders,
                                                       RequestParams requestParams); @Override Response<OK200TransactionDetails> getTransactionDetails(String accountId,
                                                                   String transactionId,
                                                                   RequestHeaders requestHeaders,
                                                                   RequestParams requestParams); @Override Response<ConsentsResponse201> createConsent(RequestHeaders requestHeaders,
                                                       RequestParams requestParams,
                                                       Consents body);  }### Answer:
@Test void getTransactionSetsAcceptApplicationJson() { Mockito.when(httpClient.send(Mockito.any(), Mockito.any())) .thenReturn(new Response<>(200, new ConsorsTransactionsResponse200Json(), ResponseHeaders.emptyResponseHeaders())); service.getTransactionListAsString(null, RequestHeaders.empty(), RequestParams.empty()); Mockito.verify(httpClient, Mockito.times(1)) .send(builderCaptor.capture(), Mockito.any()); assertThat(builderCaptor.getValue().headers()) .containsEntry(RequestHeaders.ACCEPT, ContentType.APPLICATION_JSON); }