@Test
public void validateStringLength() throws Exception {

    ResourceModel stringRes = createResourceModel(Type.STRING, "{5}");
    assertFalse(stringRes.isValid("hey"));
    assertTrue(stringRes.isValid("hello"));
    assertFalse(stringRes.isValid("helloka"));
}