public boolean isRegex() {
        return regex;
    }
@Test
    public void testIsRegex() {
        PropertyType instance = new PropertyType();
        assertFalse(instance.isRegex());
        instance.setRegex(true);
        assertTrue(instance.isRegex());
    }