public static void clearRegistry() {
        final Set<Class> implementationsToClear = new HashSet<>(CORE_IMPLEMENTATIONS);
        implementationsToClear.addAll(SparkHadoopGraphProvider.IMPLEMENTATION);

        MetaRegistryUtil.clearRegistry(implementationsToClear);
    }
Clear the metaclass registry to "turn-off" sugar.
spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/util/SugarTestHelper.java