@Test
    public void shouldGetAsBindings() {
        final Settings settings = Settings.read(DefaultGraphManagerTest.class.getResourceAsStream("../gremlin-server-integration.yaml"));
        final GraphManager graphManager = new DefaultGraphManager(settings);
        final Bindings bindings = graphManager.getAsBindings();

        assertNotNull(bindings);
        assertEquals(7, bindings.size());
        assertThat(bindings.containsKey("graph"), is(true));
        assertThat(bindings.containsKey("classic"), is(true));
        assertThat(bindings.containsKey("modern"), is(true));
        assertThat(bindings.containsKey("crew"), is(true));
        assertThat(bindings.containsKey("sink"), is(true));
        assertThat(bindings.containsKey("grateful"), is(true));
        assertThat(bindings.containsKey("tx"), is(true));
        assertThat(bindings.get("graph"), instanceOf(TinkerGraph.class));
        assertThat(bindings.get("tx"), instanceOf(TinkerTransactionGraph.class));
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/util/DefaultGraphManagerTest.java