ParameterUtil { public static Instant parseDateHour(String dateHour) { return Instant.from(LocalDateTime.from( ISO_LOCAL_DATE_HOUR.parse(dateHour)).atOffset(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 shouldParseDateHour() { final Instant instant = ParameterUtil.parseDateHour("2016-01-19T08"); assertThat(instant, is(parse("2016-01-19T08:00:00.000Z"))); }