@Test
    public void shouldMaintainOriginalConfigurationObjectGivenToFactory() throws Exception {
        final Configuration originalConfig = graphProvider.newGraphConfiguration("temp2", this.getClass(), name.getMethodName(), null);
        final Graph createdGraph = GraphFactory.open(originalConfig);

        final Configuration configInGraph = createdGraph.configuration();
        final AtomicInteger keyCount = new AtomicInteger(0);
        originalConfig.getKeys().forEachRemaining(k -> {
            assertTrue(configInGraph.containsKey(k));
            keyCount.incrementAndGet();
        });

        // need some keys in the originalConfig for this test to be meaningful
        assertTrue(keyCount.get() > 0);
        assertEquals(keyCount.get(), IteratorUtils.count(configInGraph.getKeys()));

        graphProvider.clear(createdGraph, originalConfig);
    }
A {@link Graph} should maintain the original {@code Configuration} object passed to it via {@link GraphFactory}.
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/GraphConstructionTest.java