@Test
    public void shouldCloseCleanly() throws Exception {
        final KdcFixture kdc;
        final String moduleBaseDir = System.getProperty("basedir");
        final String authConfigName = moduleBaseDir + "/src/test/resources/org/apache/tinkerpop/gremlin/server/gremlin-console-jaas.conf";
        System.setProperty("java.security.auth.login.config", authConfigName);
        kdc = new KdcFixture(moduleBaseDir);
        kdc.setUp();

        // deleting the principals will force an exception when they are deleted a second time on close
        kdc.deletePrincipals();

        // expect a clean shutdown despite failures that will come from trying to delete principals that aren't there
        kdc.close();
    }
Validates the {@code KdcFixture} behavior a bit - tests for a tests.
gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/server/KdcFixtureTest.java