    @Test
    public void testEnumWithBadCharacters() {

        Pattern actual = ConfigPropertyUtils.createValidationPatternFromEnumType(BadBadEnum.class);
        assertEquals("(?i)This_Enum_Val_Cointains_Really_\\$_BAD_CHARS_£", actual.pattern());
        assertTrue(actual.matcher(BadBadEnum.This_Enum_Val_Cointains_Really_$_BAD_CHARS_£.name()).matches());
    }