Program: 5213
Project: 5213
Buggy source:
@BeforeClass public static void init() throws Exception {
  cConf.set(Constants.CFG_LOCAL_DATA_DIR,tmpFolder.newFolder().getAbsolutePath());
  Injector injector=Guice.createInjector(new ConfigModule(cConf),new DiscoveryRuntimeModule().getInMemoryModules(),new SystemDatasetRuntimeModule().getInMemoryModules(),Modules.override(new DataSetsModules().getInMemoryModules()).with(new AbstractModule(){
    @Override protected void configure(){
      bind(OwnerStore.class).to(InMemoryOwnerStore.class).in(Scopes.SINGLETON);
    }
  }
),new DataFabricModules().getInMemoryModules(),new NonCustomLocationUnitTestModule().getModule(),new NamespaceClientRuntimeModule().getInMemoryModules(),new TransactionMetricsModule(),new NotificationFeedServiceRuntimeModule().getInMemoryModules(),new ExploreClientModule(),new ViewAdminModules().getInMemoryModules(),new AuthorizationTestModule(),new AuthenticationContextModules().getNoOpModule(),new AuthorizationEnforcementModule().getInMemoryModules(),Modules.override(new StreamAdminModules().getInMemoryModules()).with(new AbstractModule(){
    @Override protected void configure(){
      bind(StreamMetaStore.class).to(InMemoryStreamMetaStore.class);
      bind(UGIProvider.class).to(UnsupportedUGIProvider.class);
      bind(OwnerAdmin.class).to(DefaultOwnerAdmin.class);
    }
  }
));
  setupNamespaces(injector.getInstance(NamespacedLocationFactory.class));
  streamAdmin=injector.getInstance(StreamAdmin.class);
  coordinatorClient=injector.getInstance(StreamCoordinatorClient.class);
  coordinatorClient.startAndWait();
}

Fixed version (ground truth):
@BeforeClass public static void init() throws Exception {
  cConf.set(Constants.CFG_LOCAL_DATA_DIR,tmpFolder.newFolder().getAbsolutePath());
  Injector injector=Guice.createInjector(new ConfigModule(cConf),new DiscoveryRuntimeModule().getInMemoryModules(),new SystemDatasetRuntimeModule().getInMemoryModules(),Modules.override(new DataSetsModules().getInMemoryModules()).with(new AbstractModule(){
    @Override protected void configure(){
      bind(OwnerStore.class).to(InMemoryOwnerStore.class).in(Scopes.SINGLETON);
    }
  }
),new DataFabricModules().getInMemoryModules(),new NonCustomLocationUnitTestModule().getModule(),new TransactionMetricsModule(),new NotificationFeedServiceRuntimeModule().getInMemoryModules(),new ExploreClientModule(),new ViewAdminModules().getInMemoryModules(),new AuthorizationTestModule(),new AuthenticationContextModules().getNoOpModule(),new AuthorizationEnforcementModule().getInMemoryModules(),Modules.override(new StreamAdminModules().getInMemoryModules()).with(new AbstractModule(){
    @Override protected void configure(){
      bind(StreamMetaStore.class).to(InMemoryStreamMetaStore.class);
      bind(UGIProvider.class).to(UnsupportedUGIProvider.class);
      bind(OwnerAdmin.class).to(DefaultOwnerAdmin.class);
      bind(NamespaceQueryAdmin.class).to(SimpleNamespaceQueryAdmin.class);
    }
  }
));
  setupNamespaces(injector.getInstance(NamespacedLocationFactory.class));
  streamAdmin=injector.getInstance(StreamAdmin.class);
  coordinatorClient=injector.getInstance(StreamCoordinatorClient.class);
  coordinatorClient.startAndWait();
}