DateUtilities { public static String dateFormat(final Date date) { return getNewDateFormat().format(date); } private  DateUtilities(); static String dateFormat(final Date date);  }
@Test public void shouldFormatDate() { assertThat(DateUtilities.dateFormat(new Date(1520881821937L)), is("Mon, 12 Mar 2018 19:10:21 GMT")); }