ParseImpreciseDateFormat { String format(Date date) { synchronized (lock) { return dateFormat.format(date); } } private  ParseImpreciseDateFormat(); static ParseImpreciseDateFormat getInstance();  }
@Test public void testFormat() { Date date = new Date(1431515281000L); String string = ParseImpreciseDateFormat.getInstance().format(date); assertEquals("2015-05-13T11:08:01Z", string); }