Program: 5216
Project: 5216
Buggy source:
@BeforeClass public static void init() throws Exception {
  CConfiguration cConf=CConfiguration.create();
  cConf.set(Constants.CFG_LOCAL_DATA_DIR,tmpFolder.newFolder().getAbsolutePath());
  addCConfProperties(cConf);
  Injector injector=Guice.createInjector(new ConfigModule(cConf),new NonCustomLocationUnitTestModule().getModule(),new SystemDatasetRuntimeModule().getInMemoryModules(),new DataSetsModules().getInMemoryModules(),new DataFabricLevelDBModule(),new TransactionMetricsModule(),new DiscoveryRuntimeModule().getInMemoryModules(),new ExploreClientModule(),new ViewAdminModules().getInMemoryModules(),new AuditModule().getInMemoryModules(),new NamespaceClientRuntimeModule().getInMemoryModules(),new AuthorizationTestModule(),new AuthorizationEnforcementModule().getInMemoryModules(),new AuthenticationContextModules().getNoOpModule(),Modules.override(new StreamAdminModules().getStandaloneModules()).with(new AbstractModule(){
    @Override protected void configure(){
      bind(StreamMetaStore.class).to(InMemoryStreamMetaStore.class);
      bind(NotificationFeedManager.class).to(NoOpNotificationFeedManager.class);
      bind(UGIProvider.class).to(UnsupportedUGIProvider.class);
      bind(OwnerAdmin.class).to(DefaultOwnerAdmin.class);
    }
  }
));
  streamAdmin=injector.getInstance(StreamAdmin.class);
  txManager=injector.getInstance(TransactionManager.class);
  fileWriterFactory=injector.getInstance(StreamFileWriterFactory.class);
  streamCoordinatorClient=injector.getInstance(StreamCoordinatorClient.class);
  inMemoryAuditPublisher=injector.getInstance(InMemoryAuditPublisher.class);
  authorizer=injector.getInstance(AuthorizerInstantiator.class).get();
  authorizationEnforcementService=injector.getInstance(AuthorizationEnforcementService.class);
  ownerAdmin=injector.getInstance(OwnerAdmin.class);
  streamCoordinatorClient.startAndWait();
  setupNamespaces(injector.getInstance(NamespacedLocationFactory.class));
  txManager.startAndWait();
  authorizationEnforcementService.startAndWait();
}

Fixed version (ground truth):
@BeforeClass public static void init() throws Exception {
  CConfiguration cConf=CConfiguration.create();
  cConf.set(Constants.CFG_LOCAL_DATA_DIR,tmpFolder.newFolder().getAbsolutePath());
  addCConfProperties(cConf);
  Injector injector=Guice.createInjector(new ConfigModule(cConf),new NonCustomLocationUnitTestModule().getModule(),new SystemDatasetRuntimeModule().getInMemoryModules(),new DataSetsModules().getInMemoryModules(),new DataFabricLevelDBModule(),new TransactionMetricsModule(),new DiscoveryRuntimeModule().getInMemoryModules(),new ExploreClientModule(),new ViewAdminModules().getInMemoryModules(),new AuditModule().getInMemoryModules(),new AuthorizationTestModule(),new AuthorizationEnforcementModule().getInMemoryModules(),new AuthenticationContextModules().getNoOpModule(),Modules.override(new StreamAdminModules().getStandaloneModules()).with(new AbstractModule(){
    @Override protected void configure(){
      bind(StreamMetaStore.class).to(InMemoryStreamMetaStore.class);
      bind(NotificationFeedManager.class).to(NoOpNotificationFeedManager.class);
      bind(UGIProvider.class).to(UnsupportedUGIProvider.class);
      bind(OwnerAdmin.class).to(DefaultOwnerAdmin.class);
      bind(NamespaceQueryAdmin.class).to(SimpleNamespaceQueryAdmin.class);
    }
  }
));
  streamAdmin=injector.getInstance(StreamAdmin.class);
  txManager=injector.getInstance(TransactionManager.class);
  fileWriterFactory=injector.getInstance(StreamFileWriterFactory.class);
  streamCoordinatorClient=injector.getInstance(StreamCoordinatorClient.class);
  inMemoryAuditPublisher=injector.getInstance(InMemoryAuditPublisher.class);
  authorizer=injector.getInstance(AuthorizerInstantiator.class).get();
  authorizationEnforcementService=injector.getInstance(AuthorizationEnforcementService.class);
  ownerAdmin=injector.getInstance(OwnerAdmin.class);
  streamCoordinatorClient.startAndWait();
  setupNamespaces(injector.getInstance(NamespacedLocationFactory.class));
  txManager.startAndWait();
  authorizationEnforcementService.startAndWait();
}