    @Test
    public void testStringValidator() {

        StringPropertyValidationRules validator = CannedPropertyValidators.textValidator();
        assertFalse(validator.hasChoices());
        assertThat(validator.choices()).isEmpty();
        assertTrue(validator.isValueValid(""));
        assertTrue(validator.isValueValid("This is text"));
        assertFalse(validator.isValueValid("Invalid char \""));
        assertFalse(validator.isValueValid("Invalid because the text is too long for the field"));
    }