Program: 124581
Project: 124581
Buggy source:
@Test public void testModuleGroups() throws Exception {
  Map<String,String> results=new HashMap<>();
  results.put(EMR550PigModuleGroup.PIG_GROUP_NAME,null);
  results.put(EMR550PigModuleGroup.PIG_HCATALOG_GROUP_NAME,"String_Node_Str");
  results.put(EMR550PigModuleGroup.PIG_PARQUET_GROUP_NAME,"String_Node_Str");
  results.put(EMR550PigModuleGroup.PIG_AVRO_GROUP_NAME,"String_Node_Str");
  results.put(EMR550PigModuleGroup.PIG_RCFILE_GROUP_NAME,"String_Node_Str");
  results.put(EMR550PigModuleGroup.PIG_SEQUENCEFILE_GROUP_NAME,"String_Node_Str");
  results.put(EMR550PigModuleGroup.PIG_S3_GROUP_NAME,"String_Node_Str");
  results.put(EMR550HBaseModuleGroup.MODULE_GROUP_NAME,"String_Node_Str");
  results.put(EMR550PigModuleGroup.PIG_HBASE_GROUP_NAME,"String_Node_Str");
  Set<DistributionModuleGroup> moduleGroups=EMR550PigModuleGroup.getModuleGroups();
  assertEquals(9,moduleGroups.size());
  for (  DistributionModuleGroup module : moduleGroups) {
    assertTrue("String_Node_Str" + module.getModuleName(),results.containsKey(module.getModuleName()));
    if (results.get(module.getModuleName()) == null) {
      assertTrue("String_Node_Str" + module.getModuleName() + "String_Node_Str",results.get(module.getModuleName()) == null);
    }
 else {
      assertTrue("String_Node_Str" + module.getModuleName() + "String_Node_Str"+ results.get(module.getModuleName())+ "String_Node_Str",results.get(module.getModuleName()) != null);
      assertEquals(results.get(module.getModuleName()),module.getRequiredIf().getConditionString());
    }
  }
}

Fixed version (ground truth):
@Test public void testModuleGroups() throws Exception {
  Map<String,String> results=new HashMap<>();
  results.put(EMR550PigModuleGroup.PIG_GROUP_NAME,null);
  results.put(EMR550PigModuleGroup.PIG_HCATALOG_GROUP_NAME,"String_Node_Str");
  results.put(EMR550PigModuleGroup.PIG_PARQUET_GROUP_NAME,"String_Node_Str");
  results.put(EMR550PigModuleGroup.PIG_AVRO_GROUP_NAME,"String_Node_Str");
  results.put(EMR550PigModuleGroup.PIG_RCFILE_GROUP_NAME,"String_Node_Str");
  results.put(EMR550PigModuleGroup.PIG_SEQUENCEFILE_GROUP_NAME,"String_Node_Str");
  results.put(EMR550PigModuleGroup.PIG_S3_GROUP_NAME,"String_Node_Str");
  results.put(EMR550HBaseModuleGroup.MODULE_GROUP_NAME,"String_Node_Str");
  results.put(EMR550PigModuleGroup.PIG_HBASE_GROUP_NAME,"String_Node_Str");
  results.put(EMR550PigModuleGroup.HDFS_GROUP_NAME,null);
  results.put(EMR550HBaseModuleGroup.MODULE_GROUP_NAME,"String_Node_Str");
  results.put(EMR550PigModuleGroup.MAPREDUCE_GROUP_NAME,null);
  Set<DistributionModuleGroup> moduleGroups=EMR550PigModuleGroup.getModuleGroups();
  assertEquals(results.size(),moduleGroups.size());
  for (  DistributionModuleGroup module : moduleGroups) {
    assertTrue("String_Node_Str" + module.getModuleName(),results.containsKey(module.getModuleName()));
    if (results.get(module.getModuleName()) == null) {
      assertTrue("String_Node_Str" + module.getModuleName() + "String_Node_Str",results.get(module.getModuleName()) == null);
    }
 else {
      assertTrue("String_Node_Str" + module.getModuleName() + "String_Node_Str"+ results.get(module.getModuleName())+ "String_Node_Str",results.get(module.getModuleName()) != null);
      assertEquals(results.get(module.getModuleName()),module.getRequiredIf() != null ? module.getRequiredIf().getConditionString() : null);
    }
  }
}