### Question:
TimeUtil { public static Date fromString(String value) { Date newDate = null; if (StringUtils.isNotBlank(value)) { SimpleDateFormat sdf = new SimpleDateFormat(OMP_DATE_FORMAT); newDate = sdf.parse(value, new ParsePosition(0)); } return newDate; }  static long minutesToMillis(long minutes); static SimpleDateFormat standardDateFormater(); static Date fromString(String value); static String dateToString(Date value); static Date currentDate(); static long daysToMillis(long days); static Date beginningOfDay(Date date); static Date endOfDay(Date date); static String millisToString(long millis);  }### Answer:
@Test public void testFromString() { System.out.println("fromString"); String value = "2012-01-01T00:25:25.999Z"; Date result = TimeUtil.fromString(value); assertNotNull(result); value = null; result = TimeUtil.fromString(value); Date expResult = null; assertEquals(result, expResult); value = ""; result = TimeUtil.fromString(value); assertEquals(result, expResult); }