Program: 5853
Project: 5853
Buggy source:
@BeforeClass public static void setup() throws Exception {
  CConfiguration cConf=CConfiguration.create();
  cConf.set(Constants.CFG_LOCAL_DATA_DIR,TMP_FOLDER.newFolder().getAbsolutePath());
  cConf.setBoolean(Constants.Security.ENABLED,true);
  cConf.setBoolean(Constants.Security.KERBEROS_ENABLED,false);
  cConf.setBoolean(Constants.Security.Authorization.ENABLED,true);
  cConf.setBoolean(Constants.Security.Authorization.CACHE_ENABLED,false);
  Location deploymentJar=AppJarHelper.createDeploymentJar(new LocalLocationFactory(TMP_FOLDER.newFolder()),InMemoryAuthorizer.class);
  cConf.set(Constants.Security.Authorization.EXTENSION_JAR_PATH,deploymentJar.toURI().getPath());
  cConf.set(Constants.Security.Authorization.ADMIN_USERS,"String_Node_Str");
  instanceId=new InstanceId(cConf.get(Constants.INSTANCE_NAME));
  File systemArtifactsDir=TMP_FOLDER.newFolder();
  cConf.set(Constants.AppFabric.SYSTEM_ARTIFACTS_DIR,systemArtifactsDir.getAbsolutePath());
  createSystemArtifact(systemArtifactsDir);
  Injector injector=Guice.createInjector(new AppFabricTestModule(cConf));
  defaultNamespaceEnsurer=injector.getInstance(DefaultNamespaceEnsurer.class);
  discoveryServiceClient=injector.getInstance(DiscoveryServiceClient.class);
  txManager=injector.getInstance(TransactionManager.class);
  datasetService=injector.getInstance(DatasetService.class);
  authorizationEnforcementService=injector.getInstance(AuthorizationEnforcementService.class);
  authorizationEnforcementService.startAndWait();
  systemArtifactLoader=injector.getInstance(SystemArtifactLoader.class);
  authorizationBootstrapper=injector.getInstance(AuthorizationBootstrapper.class);
  namespaceQueryAdmin=injector.getInstance(NamespaceQueryAdmin.class);
  namespaceAdmin=injector.getInstance(NamespaceAdmin.class);
  artifactRepository=injector.getInstance(ArtifactRepository.class);
  dsFramework=injector.getInstance(DatasetFramework.class);
}

Fixed version (ground truth):
@BeforeClass public static void setup() throws Exception {
  CConfiguration cConf=CConfiguration.create();
  cConf.set(Constants.CFG_LOCAL_DATA_DIR,TMP_FOLDER.newFolder().getAbsolutePath());
  cConf.setBoolean(Constants.Security.ENABLED,true);
  cConf.setBoolean(Constants.Security.KERBEROS_ENABLED,false);
  cConf.setBoolean(Constants.Security.Authorization.ENABLED,true);
  cConf.setBoolean(Constants.Security.Authorization.CACHE_ENABLED,false);
  Location deploymentJar=AppJarHelper.createDeploymentJar(new LocalLocationFactory(TMP_FOLDER.newFolder()),InMemoryAuthorizer.class);
  cConf.set(Constants.Security.Authorization.EXTENSION_JAR_PATH,deploymentJar.toURI().getPath());
  cConf.set(Constants.Security.Authorization.ADMIN_USERS,ADMIN_USER.getName());
  instanceId=new InstanceId(cConf.get(Constants.INSTANCE_NAME));
  File systemArtifactsDir=TMP_FOLDER.newFolder();
  cConf.set(Constants.AppFabric.SYSTEM_ARTIFACTS_DIR,systemArtifactsDir.getAbsolutePath());
  createSystemArtifact(systemArtifactsDir);
  Injector injector=Guice.createInjector(new AppFabricTestModule(cConf));
  defaultNamespaceEnsurer=injector.getInstance(DefaultNamespaceEnsurer.class);
  discoveryServiceClient=injector.getInstance(DiscoveryServiceClient.class);
  txManager=injector.getInstance(TransactionManager.class);
  datasetService=injector.getInstance(DatasetService.class);
  authorizationEnforcementService=injector.getInstance(AuthorizationEnforcementService.class);
  authorizationEnforcementService.startAndWait();
  systemArtifactLoader=injector.getInstance(SystemArtifactLoader.class);
  authorizationBootstrapper=injector.getInstance(AuthorizationBootstrapper.class);
  namespaceQueryAdmin=injector.getInstance(NamespaceQueryAdmin.class);
  namespaceAdmin=injector.getInstance(NamespaceAdmin.class);
  artifactRepository=injector.getInstance(ArtifactRepository.class);
  dsFramework=injector.getInstance(DatasetFramework.class);
}