### Question:
Utils { public static CreditBPM creditBPMFromCredit(Credit credit) { Money value = Money.newBuilder() .setCurrencyCode(credit.getCurrency()) .setUnits(credit.getAmount()) .build(); CreditBPM creditBPM = CreditBPM.newBuilder() .setAdditionalNotes(credit.getAdditionalNotes()) .setPayerName(credit.getPayerName()) .setRecipientName(credit.getRecipientName()) .setServiceRef(credit.getReference()) .setApplicationMessageID(credit.getApplicationMessageId()) .setCreatedDate(credit.getCreatedDate()) .setCreatedTime(credit.getCreatedTime()) .setValue(value) .build(); return creditBPM; }  static String timestampToDate(long seconds, int nanos); static String timestampToTime(long seconds, int nanos); static String applicationMessageIdToString(ApplicationMessageID transactionId); static String transactionIdToString(TransactionId transactionId); static Credit creditFromCreditBPM(CreditBPM creditBPM, String threadId); static CreditBPM creditBPMFromCredit(Credit credit); static Settlement settlementFromSettleProposeBPM(SettleProposeBPM settleProposeBPM, String threadId); static ApplicationMessageID applicationMessageIdFromString(String appMessageId); static String getThreadId(); static Money moneyFromSettlement(Settlement settlement); static ResponseEntity<SettlementRest> serverError();  }### Answer:
@Test public void testCreditBPMFromCredit() { Credit credit = new Credit(); credit.setAdditionalNotes("additional notes"); credit.setApplicationMessageId("application message id"); credit.setCreatedDate("created date"); credit.setCreatedTime("created time"); credit.setPayerName("Payer name"); credit.setRecipientName("Recipient name"); credit.setReference("Service ref"); credit.setAmount(10); credit.setCurrency("currency"); credit.setThreadId("threadid"); CreditBPM creditBPM = Utils.creditBPMFromCredit(credit); assertEquals(credit.getAdditionalNotes(), creditBPM.getAdditionalNotes()); assertEquals(credit.getApplicationMessageId(), creditBPM.getApplicationMessageID()); assertEquals(credit.getCreatedDate(), creditBPM.getCreatedDate()); assertEquals(credit.getCreatedTime(), creditBPM.getCreatedTime()); assertEquals(credit.getPayerName(), creditBPM.getPayerName()); assertEquals(credit.getRecipientName(), creditBPM.getRecipientName()); assertEquals(credit.getReference(), creditBPM.getServiceRef()); assertEquals(credit.getAmount(), creditBPM.getValue().getUnits()); assertEquals(credit.getCurrency(), creditBPM.getValue().getCurrencyCode()); }