@Test
    public void shouldImportFields() throws Exception {
    	final Field field = Math.class.getField("PI");
        final ImportGremlinPlugin module = ImportGremlinPlugin.build()
                .fieldsImports(Collections.singletonList(Math.class.getCanonicalName() + "#" + field.getName())).create();

        final DefaultImportCustomizer customizer = (DefaultImportCustomizer) module.getCustomizers().get()[0];
        assertEquals(1, module.getCustomizers().get().length);
        assertThat(customizer.getFieldImports(), hasItems(field));
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/jsr223/ImportGremlinPluginTest.java