### Question:
TransactionService { public Map<String, String> uploadUserTransaction(MultipartFile multipart) { log.info("parsing transaction data"); List<UserTransaction> transactions = parseService.convertFileToTargetObject(multipart, UserTransaction.class); log.info("{} transactions parsed", transactions.size()); Map<String, String> map = transactionsStaffRestClient.transactions(transactionDataConverter.toLedgersMockTransactions(transactions)).getBody(); log.info("Call to Ledgers to create new transactions successful"); return map; }  Map<String, String> uploadUserTransaction(MultipartFile multipart);  }### Answer:
@Test void uploadUserTransaction() throws IOException { UserTransaction tr = parseService1.convertFileToTargetObject(resolveMultipartFile("transactions_template.csv"), UserTransaction.class).get(0); when(parseService.convertFileToTargetObject(any(), any())).thenReturn(Collections.singletonList(tr)); when(transactionDataConverter.toLedgersMockTransactions((anyList()))).thenReturn(converter.toLedgersMockTransactions(Collections.singletonList(tr))); when(transactionsStaffRestClient.transactions(anyList())).thenReturn(ResponseEntity.ok(new HashMap<>())); Map<String, String> result = transactionService.uploadUserTransaction(resolveMultipartFile("transactions_template.csv")); assertTrue(result.isEmpty()); assertEquals(new HashMap<String, String>(), result); }