Util { public static void formatTimeISO(long time, StringBuilder sbuffer) { sbuffer.append(isoTimeFormatter.print(time)); } private  Util(); static String logLevelNameForValue(int value); static void formatTimeSecondsSinceEpoch(final long time, StringBuilder sbuffer); static void formatTimeISO(long time, StringBuilder sbuffer); static String escape(String s);  }
@Test public void testFormatTimeISO() throws Exception { StringBuilder buff = new StringBuilder(); Util.formatTimeISO(1322604315123L, buff); assertEquals("2011-11-29T22:05:15.123", buff.toString()); }