@Test
public void validateStringLengthRange() {

    ResourceModel stringRes = createResourceModel(Type.STRING, "{1,9}");
    assertFalse(stringRes.isValid(1));
    assertTrue(stringRes.isValid("hello"));
    assertFalse(stringRes.isValid(""));
    assertFalse(stringRes.isValid("hellobello"));
}