### Question:
Utils { public static ResponseEntity<SettlementRest> serverError() { HttpHeaders headers = new HttpHeaders(); headers.add("Content-Type", "application/json"); return new ResponseEntity<>(headers, HttpStatus.INTERNAL_SERVER_ERROR); }  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 testResponseEntity() { ResponseEntity<SettlementRest> response = Utils.serverError(); assertEquals("application/json", response.getHeaders().get("Content-Type").get(0)); assertEquals(HttpStatus.INTERNAL_SERVER_ERROR, response.getStatusCode()); }