@Test
public void validateBooleanResource() throws Exception {

    ResourceModel bolRes = createResourceModel(Type.BOOLEAN, "");
    assertTrue(bolRes.isValid(0));
    assertTrue(bolRes.isValid(1));
    assertTrue(bolRes.isValid("0"));
    assertTrue(bolRes.isValid("1"));
    assertFalse(bolRes.isValid(2));
}