### Question:
KernelExtension extends Service { protected boolean isLoaded( KernelData kernel ) { return getState( kernel ) != null; } KernelExtension( String key ); @Override final int hashCode(); @Override final boolean equals( Object obj ); final void loadAgent( String agentArgs );  }### Answer:
@Test public void canDisableLoadingKernelExtensions() throws Exception { EmbeddedGraphDatabase graphdb = graphdb( "graphdb", false, 0 ); try { assertFalse( "Extensions were loaded despite configured not to", new DummyExtension().isLoaded( getExtensions( graphdb ) ) ); } finally { graphdb.shutdown(); } }