### Question:
ConsorsAccountInformationService extends BaseAccountInformationService { @Override public Response<OK200TransactionDetails> getTransactionDetails(String accountId, String transactionId, RequestHeaders requestHeaders, RequestParams requestParams) { return getTransactionDetails(accountId, transactionId, requestHeaders, requestParams, ConsorsOK200TransactionDetails.class, mapper::toOK200TransactionDetails); } 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 getTransactionDetailsCanDeserializeRemittanceInformationUnstructuredOfTypeString() { Mockito.doAnswer(invocationOnMock -> { HttpClient.ResponseHandler responseHandler = invocationOnMock.getArgument(1, HttpClient.ResponseHandler.class); String rawResponse = "{\n" + " \"transactionsDetails\": {\n" + " \"remittanceInformationStructured\": \"remittanceInformationStructuredStringValue\"\n" + " }\n" + "}"; return new Response<>(200, responseHandler.apply(200, new ByteArrayInputStream(rawResponse.getBytes()), ResponseHeaders.fromMap(singletonMap("Content-Type", "application/json"))), null); }).when(httpClient).send(Mockito.any(), Mockito.any()); Response<OK200TransactionDetails> response = service.getTransactionDetails(null, null, RequestHeaders.empty(), RequestParams.empty()); RemittanceInformationStructured remittanceInformationStructured = response.getBody() .getTransactionsDetails() .getRemittanceInformationStructured(); assertThat(remittanceInformationStructured.getReference()) .isEqualTo("remittanceInformationStructuredStringValue"); }