@Test
public void testToParameter() {

  assertThat(ParameterUtil.toParameter(HOURS, TIME), is("2016-01-19T09"));
  assertThat(ParameterUtil.toParameter(DAYS, TIME), is("2016-01-19"));
  assertThat(ParameterUtil.toParameter(WEEKS, TIME), is("2016-01-19"));
  assertThat(ParameterUtil.toParameter(MONTHS, TIME), is("2016-01"));
  assertThat(ParameterUtil.toParameter(YEARS, TIME), is("2016"));
  assertThat(ParameterUtil.toParameter(Schedule.parse("0 * * * *"), TIME),
      is("2016-01-19T09:11:00Z"));
}