### Question:
LedgersSpiAccountMapper { public abstract FundsConfirmationRequestTO toFundsConfirmationTO(SpiPsuData psuData, SpiFundsConfirmationRequest spiFundsConfirmationRequest);  SpiAccountDetails toSpiAccountDetails(AccountDetailsTO accountDetails); SpiCardAccountDetails toSpiCardAccountDetails(AccountDetailsTO accountDetails); abstract List<SpiTransaction> toSpiTransactions(List<TransactionTO> transactions); abstract List<SpiCardTransaction> toSpiCardTransactions(List<TransactionTO> transactions); SpiTransaction toSpiTransaction(TransactionTO transaction); SpiCardTransaction toSpiCardTransaction(TransactionTO transaction); SpiAccountReference toSpiAccountReference(AccountReferenceTO reference); abstract List<SpiAccountBalance> toSpiAccountBalancesList(List<AccountBalanceTO> accountBalanceTOS); @Mapping(target = "spiBalanceType", expression = "java(mapToSpiBalanceType(accountBalanceTO.getBalanceType()))") @Mapping(source = "amount", target = "spiBalanceAmount") abstract SpiAccountBalance accountBalanceTOToSpiAccountBalance(AccountBalanceTO accountBalanceTO); abstract List<SpiExchangeRate> toSpiExchangeRateList(List<ExchangeRateTO> exchangeRates); SpiExchangeRate toSpiExchangeRate(ExchangeRateTO exchangeRate); SpiAmount toSpiAmount(AmountTO amount); abstract FundsConfirmationRequestTO toFundsConfirmationTO(SpiPsuData psuData, SpiFundsConfirmationRequest spiFundsConfirmationRequest); abstract AccountReferenceTO mapToAccountReferenceTO(SpiAccountReference spiAccountReference); String mapToRemittanceString(RemittanceInformationStructuredTO remittanceInformationStructuredTO);  }### Answer:
@Test void toFundsConfirmationTOWithRealData() { SpiPsuData inputData = jsonReader.getObjectFromFile("json/mappers/spi-psu-data.json", SpiPsuData.class); SpiFundsConfirmationRequest inputDataRequest = jsonReader.getObjectFromFile("json/mappers/spi-funds-confirmation-request.json", SpiFundsConfirmationRequest.class); FundsConfirmationRequestTO actualResult = ledgersSpiAccountMapper.toFundsConfirmationTO(inputData, inputDataRequest); FundsConfirmationRequestTO expectedResult = jsonReader.getObjectFromFile("json/mappers/funds-confirmation-request-to.json", FundsConfirmationRequestTO.class); assertEquals(expectedResult, actualResult); }
@Test void toFundsConfirmationTOWithNull() { FundsConfirmationRequestTO actualResult = ledgersSpiAccountMapper.toFundsConfirmationTO(null, null); assertNull(actualResult); }