injector = Guice.createInjector(
ImmutableList.<Module>builder()
.addAll(main.getModules(CLUSTER_NAME, SERVERSET_PATH, zkClientConfig, STATS_URL_PREFIX))
.add(new LifecycleModule())
.add(new AppLauncherModule())
.add(new ZooKeeperClientModule(zkClientConfig))
.add(testModule)
.build()
);
injector.injectMembers(main);
lifecycle = injector.getInstance(Lifecycle.class);