### Question:
TimestampFormatter { public String date(Date date) { return formatDate.get().format(date); }  static TimestampFormatter getInstance(); String date(Date date); String isoDateTime(Date date); String isoDateTime(long timestamp); String isoDateTime(OSHDBTimestamp date);  }### Answer:
@Test public void testDate() { Date date = new Date(1510052557000L); TimestampFormatter instance = TimestampFormatter.getInstance(); String expResult = "2017-11-07"; String result = instance.date(date); assertEquals(expResult, result); }