@Test
void getCustomizersWhenCustomizersDeclared()
{

    when(this.source.getProperty("groovy.compilationCustomizers", Collections.emptyList())).thenReturn(
        Arrays.asList("mycustomizer"));
    when(this.customizer.createCustomizer()).thenReturn(new CompilationCustomizer(CompilePhase.PARSING)
    {
        @Override
        public void call(SourceUnit source, GeneratorContext context, ClassNode classNode)
            throws CompilationFailedException
        {
            // Stub for testing, do nothing.
        }
    });
    List<CompilationCustomizer> customizers = this.configuration.getCompilationCustomizers();
    assertEquals(1, customizers.size());
    assertTrue(customizers.get(0) instanceof CompilationCustomizer);
}