### Question:
AccountModelMapper { public byte[] mapToTransactionsResponseRaw(Xs2aTransactionsReport transactionsReport) { return transactionsReport.getAccountReport().getTransactionsRaw(); }  @Mapping(target = "currency", source = "currency.currencyCode") abstract de.adorsys.psd2.model.AccountReference mapToAccountReference(AccountReference accountReference); abstract List<de.adorsys.psd2.model.AccountReference> mapToAccountReferences(List<AccountReference> accountReferences); AccountList mapToAccountList(Xs2aAccountListHolder xs2aAccountListHolder); InlineResponse200 mapToInlineResponse200(Xs2aAccountDetailsHolder xs2aAccountDetailsHolder); @Mapping(target = "_links", ignore = true) @Mapping(target = "links", expression = "java(hrefLinkMapper.mapToLinksMap(accountDetails.getLinks()))") @Mapping(target = "status", source = "accountStatus") @Mapping(target = "usage", source = "usageType") @Mapping(target = "currency", expression = "java(mapToAccountDetailsCurrency(accountDetails.getCurrency()))") abstract AccountDetails mapToAccountDetails(Xs2aAccountDetails accountDetails); @Mapping(target = "balanceType", expression = "java(mapToBalanceType(balance.getBalanceType()))") @Mapping(target = "lastChangeDateTime", expression = "java(mapToOffsetDateTime(balance.getLastChangeDateTime()))") abstract Balance mapToBalance(Xs2aBalance balance); @Mapping(target = "account", source = "xs2aAccountReference") abstract ReadAccountBalanceResponse200 mapToBalance(Xs2aBalancesReport balancesReport); @Mapping(target = "_links", ignore = true) @Mapping(target = "links", expression = "java(hrefLinkMapper.mapToLinksMap(accountReport.getLinks()))") abstract AccountReport mapToAccountReport(Xs2aAccountReport accountReport); @Mapping(target = "_links", ignore = true) @Mapping(target = "links", expression = "java(hrefLinkMapper.mapToLinksMap(transactionsReport.getLinks()))") @Mapping(target = "transactions", source = "accountReport") @Mapping(target = "account", source = "accountReference") abstract TransactionsResponse200Json mapToTransactionsResponse200Json(Xs2aTransactionsReport transactionsReport); byte[] mapToTransactionsResponseRaw(Xs2aTransactionsReport transactionsReport); @Mapping(target = "currencyExchange", expression = "java(mapToReportExchanges(transactions.getExchangeRate()))") @Mapping(target = "bankTransactionCode", source = "bankTransactionCodeCode.code") @Mapping(target = "transactionAmount", source = "amount") @Mapping(target = "links", ignore = true) @Mapping(target = "_links", ignore = true) abstract TransactionDetails mapToTransaction(Transactions transactions); InlineResponse2001 mapToTransactionDetails(Transactions transactions);  }### Answer:
@Test void mapToTransactionsResponseRaw_success() { Xs2aTransactionsReport xs2aTransactionsReport = jsonReader.getObjectFromFile("json/service/mapper/account-model-mapper/AccountModelMapper-xs2a-transactions-report.json", Xs2aTransactionsReport.class); byte[] actualByteArray = mapper.mapToTransactionsResponseRaw(xs2aTransactionsReport); assertEquals(BYTE_ARRAY_IN_STRING, Base64.getEncoder().encodeToString(actualByteArray)); }