@Test
    public void shouldCompileRemoteDslTraversal() {
        final Compilation compilation = javac()
                .withProcessors(new GremlinDslProcessor())
                .compile(JavaFileObjects.forResource(GremlinDsl.class.getResource("SocialTraversalDsl.java")),
                        JavaFileObjects.forResource(GremlinDsl.class.getResource("RemoteDslTraversal.java")));

        try {
            final ClassLoader cl = new JavaFileObjectClassLoader(compilation.generatedFiles());
            final Class cls = cl.loadClass("org.apache.tinkerpop.gremlin.process.traversal.dsl.RemoteDslTraversal");
            cls.getConstructor().newInstance();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-annotations/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/GremlinDslProcessorTest.java