@Test
    public void failOnInvalidGraphWithCheckedGraphManager() {
        final Settings settings = getBaseSettings();
        settings.graphs.clear();
        settings.graphManager = CheckedGraphManager.class.getName();
        settings.graphs.put("invalid", "conf/invalidPath");

        try {
            startServer(settings).join();
            fail("Server should not have started");
        } catch (Exception ex) {
            assertTrue(ExceptionUtils.getThrowableList(ex).stream().filter(e -> e instanceof IllegalStateException)
                    .anyMatch(e -> e.getMessage().contains("Graph [invalid] configured at")));
        }
    }
TINKERPOP-2436 The gremlin server starts even if all graphs instantiation has
failed
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/GremlinServerShutdownIntegrationTest.java