### Question:
Utils { public static Money moneyFromSettlement(Settlement settlement) { return Money.newBuilder().setCurrencyCode(settlement.getCurrency()) .setUnits(settlement.getNetValue()).build(); }  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 testMoneyFromSettlement() { Settlement settlement = new Settlement(); settlement.setCurrency("currency"); settlement.setNetValue(10); Money money = Utils.moneyFromSettlement(settlement); assertEquals("currency", money.getCurrencyCode()); assertEquals(10, money.getUnits()); assertEquals(0, money.getNanos()); }