@Test
    public void shouldReturnGraphs() {
        final Settings settings = Settings.read(DefaultGraphManagerTest.class.getResourceAsStream("../gremlin-server-integration.yaml"));
        final GraphManager graphManager = new DefaultGraphManager(settings);
        final Set<String> graphNames = graphManager.getGraphNames();

        assertNotNull(graphNames);
        assertEquals(7, graphNames.size());

        assertThat(graphNames.contains("graph"), is(true));
        assertThat(graphNames.contains("classic"), is(true));
        assertThat(graphNames.contains("modern"), is(true));
        assertThat(graphNames.contains("crew"), is(true));
        assertThat(graphNames.contains("sink"), is(true));
        assertThat(graphNames.contains("grateful"), is(true));
        assertThat(graphNames.contains("tx"), is(true));
        assertThat(graphManager.getGraph("graph"), instanceOf(TinkerGraph.class));
        assertThat(graphManager.getGraph("tx"), instanceOf(TinkerTransactionGraph.class));
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/util/DefaultGraphManagerTest.java