@Test
public void validateIntegerOptions() throws Exception {

    ResourceModel intRes = createResourceModel(Type.INTEGER, "[1,2,3]");
    assertFalse(intRes.isValid("hey"));
    assertTrue(intRes.isValid(1));
    assertTrue(intRes.isValid("3"));
    assertFalse(intRes.isValid(0));
    assertFalse(intRes.isValid(4));
}