@Test
public void testInterval() throws Exception {

  final Configuration configuration = new Configuration();
  Property.CHECK_INTERVAL.doApply(configuration, "42ms");
  assertThat(configuration.getCheckIntervalInMillis(), is(42L));
  Property.CHECK_INTERVAL.doApply(configuration, "42s");
  assertThat(configuration.getCheckIntervalInMillis(), is(42000L));
  Property.CHECK_INTERVAL.doApply(configuration, "2m");
  assertThat(configuration.getCheckIntervalInMillis(), is(120000L));
  Property.CHECK_INTERVAL.doApply(configuration, "3h");
  assertThat(configuration.getCheckIntervalInMillis(), is(10800000L));
}