private void validateOptInToSuite(final Class<? extends Graph> klass) throws InitializationError {
        final Graph.OptIn[] optIns = klass.getAnnotationsByType(Graph.OptIn.class);
        if (!Arrays.stream(optIns).anyMatch(optIn -> optIn.value().equals(this.getClass().getCanonicalName())))
            if (gremlinFlavorSuite)
                logger.error(String.format("The %s will run for this Graph as it is testing a Gremlin flavor but the Graph does not publicly acknowledged it yet with the @OptIn annotation.", this.getClass().getSimpleName()));
            else
                throw new InitializationError(String.format("The %s will not run for this Graph until it is publicly acknowledged with the @OptIn annotation on the Graph instance itself", this.getClass().getSimpleName()));
    }
Constructs a Gremlin Test Suite implementation.

@param klass               Required for JUnit Suite construction
@param builder             Required for JUnit Suite construction
@param testsToExecute      The list of tests to execute
@param testsToEnforce      The list of tests to "enforce" such that a check is made to ensure that in this list,
                           there exists an implementation in the testsToExecute (use {@code null} for no
                           enforcement).
@param gremlinFlavorSuite  Ignore validation of {@link Graph.OptIn} annotations which is typically reserved for structure tests
@param traversalEngineType The {@link TraversalEngine.Type} to enforce on this suite
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/AbstractGremlinSuite.java