@Test
public void validateIntegerAny() throws Exception {

    ResourceModel intRes = createResourceModel(Type.INTEGER, "");
    assertTrue(intRes.isValid(1));
    assertTrue(intRes.isValid(Integer.MAX_VALUE));
    assertTrue(intRes.isValid(Integer.MIN_VALUE));
    assertFalse(intRes.isValid(new byte[5]));
    assertFalse(intRes.isValid(new byte[0]));
}