private Optional<GraphProvider.Descriptor> getGraphProviderDescriptor(final TraversalEngine.Type traversalEngineType,
                                                                          final Class<? extends GraphProvider> klass) throws InitializationError {
        final GraphProvider.Descriptor descriptorAnnotation = klass.getAnnotation(GraphProvider.Descriptor.class);
        if (traversalEngineType == TraversalEngine.Type.COMPUTER) {
            // can't be null if this is graph computer business
            if (null == descriptorAnnotation)
                throw new InitializationError(String.format("For 'computer' tests, '%s' must have a GraphProvider.Descriptor annotation", klass.getName()));
        }

        return Optional.ofNullable(descriptorAnnotation);
    }
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