@Test
public void validateTimeResource() throws Exception {

    ResourceModel timeRes = createResourceModel(Type.TIME, "");
    assertTrue(timeRes.isValid(0));
    assertTrue(timeRes.isValid(10000));
    assertFalse(timeRes.isValid(-1));
}