SamlUtils { public static Date parseUtcDate(final String date) { if (CommonUtils.isEmpty(date)) { return null; } return ISODateTimeFormat.dateTimeParser().parseDateTime(date).toDate(); } private  SamlUtils(); static String formatForUtcTime(final Date date); static Date parseUtcDate(final String date);  }
@Test public void testParseUtcDate() { final Date expected = new Date(1424437961025L); assertEquals(expected, SamlUtils.parseUtcDate("2015-02-20T08:12:41.025-0500")); }