ParameterUtil { public static Instant parseDateMonth(String dateMonth) { return parseDate(dateMonth + "-01"); } 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 shouldParseDateMonth() { final Instant instant = ParameterUtil.parseDateMonth("2016-01"); assertThat(instant, is(parse("2016-01-01T00:00:00.000Z"))); }