### Question:
ExtensionInitializer { public Collection<Injectable<?>> initializePackages( Iterable<String> packageNames ) { GraphDatabaseAPI graphDatabaseService = neoServer.getDatabase().getGraph(); Config configuration = neoServer.getConfig(); Collection<Injectable<?>> injectables = new HashSet<>(); for ( PluginLifecycle lifecycle : lifecycles ) { if ( hasPackage( lifecycle, packageNames ) ) { if ( lifecycle instanceof SPIPluginLifecycle ) { SPIPluginLifecycle lifeCycleSpi = (SPIPluginLifecycle) lifecycle; injectables.addAll( lifeCycleSpi.start( neoServer ) ); } else { injectables.addAll( lifecycle.start( graphDatabaseService, new ConfigAdapter( configuration ) ) ); } } } return injectables; } ExtensionInitializer( NeoServer neoServer ); Collection<Injectable<?>> initializePackages( Iterable<String> packageNames ); void stop();  }### Answer:
@Test public void testPluginInitialization() { Config config = Config.defaults( ServerSettings.transaction_idle_timeout, "600" ); NeoServer neoServer = Mockito.mock( NeoServer.class, Mockito.RETURNS_DEEP_STUBS ); Mockito.when( neoServer.getConfig() ).thenReturn( config ); ExtensionInitializer extensionInitializer = new ExtensionInitializer( neoServer ); Collection<Injectable<?>> injectableProperties = extensionInitializer.initializePackages( Collections.singletonList( "org.neo4j.server.modules" ) ); assertTrue( injectableProperties.stream() .anyMatch( i -> ServerSettings .transaction_idle_timeout.name().equals( i.getValue() ) ) ); }