DateFormatter { public static String format(Date date) { return formatter().format0(checkNotNull(date, "date")); } private  DateFormatter(); static Date parseHttpDate(CharSequence txt); static Date parseHttpDate(CharSequence txt, int start, int end); static String format(Date date); static StringBuilder append(Date date, StringBuilder sb); void reset();  }
@Test public void testFormat() { assertEquals("Sun, 6 Nov 1994 08:49:37 GMT", format(DATE)); }