ParameterUtil { public static Instant parseDate(String date) { return Instant.from(LocalDate.from( DateTimeFormatter.ISO_LOCAL_DATE.parse(date)) .atStartOfDay(UTC)); } private  ParameterUtil(); static Instant parseDate(String date); static Instant parseDateHour(String dateHour); static Instant parseDateMonth(String dateMonth); static Instant parseDateYear(String dateYear); static String toParameter(Schedule schedule, Instant instant); static Timestamp parseBest(String value); static Instant parseAlignedInstant(String dateHour, Schedule schedule);  }
@Test public void shouldParseDate() { final Instant instant = ParameterUtil.parseDate("2016-01-19"); assertThat(instant, is(parse("2016-01-19T00:00:00.000Z"))); }