private void assertCompilationSuccess(final Compilation compilation) {
        if (isJava8())
            assertThat(compilation).succeededWithoutWarnings();
        else {
            assertThat(compilation).hadWarningContaining("Supported source version 'RELEASE_8' from annotation processor");
            assertThat(compilation).succeeded();
        }
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-annotations/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/GremlinDslProcessorTest.java