### Question:
OSGIKettleLifecycleListener implements KettleLifecycleListener { @Override public void onEnvironmentInit() throws LifecycleException { }  static void setDoneInitializing(); @Override void onEnvironmentInit(); @Override void onEnvironmentShutdown();  }### Answer:
@Test(timeout = 500L) public void testOnEnvironmentInit() throws LifecycleException { OSGIKettleLifecycleListener lifecycleListener = new OSGIKettleLifecycleListener(); new Thread( new Runnable() { @Override public void run() { try { Thread.sleep( 100 ); OSGIKettleLifecycleListener.setDoneInitializing(); } catch ( InterruptedException e ) { e.printStackTrace(); } } } ).start(); lifecycleListener.onEnvironmentInit(); }