### Question:
Utils { public static Settlement settlementFromSettleProposeBPM(SettleProposeBPM settleProposeBPM, String threadId) { Settlement settlement = new Settlement(); settlement.setAdditionalNotes(settleProposeBPM.getAdditionalNotes()); settlement.setCurrency(settleProposeBPM.getNetValue().getCurrencyCode()); settlement.setNetValue(settleProposeBPM.getNetValue().getUnits()); settlement.setPayerName(settleProposeBPM.getPayerName()); settlement.setRecipientName(settleProposeBPM.getRecipientName()); settlement.setThreadId(threadId); settlement.setCreatedDate(settleProposeBPM.getCreatedDate()); settlement.setCreatedTime(settleProposeBPM.getCreatedTime()); return settlement; }  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 testSettlementFromSettleProposeBPM() { SettleProposeBPM.Builder settleBPM = SettleProposeBPM.newBuilder(); settleBPM.setAdditionalNotes("additional notes"); settleBPM.setCreatedDate("created date"); settleBPM.setCreatedTime("created time"); settleBPM.setNetValue(Money.newBuilder().setCurrencyCode("currency").setUnits(10).setNanos(20).build()); settleBPM.setPayerName("Payer name"); settleBPM.setRecipientName("Recipient name"); settleBPM.addThreadIDs("thread1"); settleBPM.addThreadIDs("thread2"); Settlement settle = Utils.settlementFromSettleProposeBPM(settleBPM.build(), "threadId"); assertEquals(settleBPM.getAdditionalNotes(), settle.getAdditionalNotes()); assertEquals(settleBPM.getCreatedDate(), settle.getCreatedDate()); assertEquals(settleBPM.getCreatedTime(), settle.getCreatedTime()); assertEquals(settleBPM.getNetValue().getUnits(), settle.getNetValue()); assertEquals(settleBPM.getPayerName(), settle.getPayerName()); assertEquals(settleBPM.getRecipientName(), settle.getRecipientName()); assertEquals("threadId", settle.getThreadId()); }