@Test
    public void shouldThrowExceptionForNotFoundSetting() {
        final CompilerConfiguration configuration = new CompilerConfiguration();
        try {
            final ConfigurationGroovyCustomizer provider = new ConfigurationGroovyCustomizer(
                    "Tolerance", 3,
                    "NotRealSettingThatWouldEverOccur2", new java.util.Date());

            provider.applyCustomization(configuration);
        } catch (Exception ex) {
            assertThat(ex, instanceOf(IllegalStateException.class));
            assertEquals("Invalid setting [NotRealSettingThatWouldEverOccur2] for CompilerConfiguration", ex.getMessage());
        }
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-groovy/src/test/java/org/apache/tinkerpop/gremlin/groovy/jsr223/ConfigurationCustomizerProviderTest.java