Program: 6136
Project: 6136
Buggy source:
@Test public void testDefaultConfig() throws Exception {
  Map<String,Set<String>> testMap=new HashMap<>();
  Set<String> testSet=new HashSet<>();
  testSet.add("String_Node_Str");
  testMap.put("String_Node_Str",testSet);
  DataQualityApp.DataQualityConfig config=new DataQualityApp.DataQualityConfig(WORKFLOW_SCHEDULE_MINUTES,getStreamSource(),"String_Node_Str",testMap);
  Id.Application appId=Id.Application.from(Id.Namespace.DEFAULT,"String_Node_Str");
  AppRequest<DataQualityApp.DataQualityConfig> appRequest=new AppRequest<>(new ArtifactSummary(appArtifact.getName(),appArtifact.getVersion().getVersion()),config);
  ApplicationManager applicationManager=deployApplication(appId,appRequest);
  MapReduceManager mrManager=applicationManager.getMapReduceManager("String_Node_Str").start();
  mrManager.waitForFinish(180,TimeUnit.SECONDS);
  Table logDataStore=(Table)getDataset("String_Node_Str").get();
  Scanner scanner=logDataStore.scan(null,null);
  DiscreteValuesHistogram discreteValuesHistogramAggregationFunction=new DiscreteValuesHistogram();
  Row row;
  try {
    while ((row=scanner.next()) != null) {
      if (Bytes.toString(row.getRow()).contains("String_Node_Str")) {
        Map<byte[],byte[]> columnsMapBytes=row.getColumns();
        byte[] output=columnsMapBytes.get(Bytes.toBytes("String_Node_Str"));
        if (output != null) {
          discreteValuesHistogramAggregationFunction.combine(output);
        }
      }
    }
  }
  finally {
    scanner.close();
  }
  Map<String,Integer> outputMap=discreteValuesHistogramAggregationFunction.retrieveAggregation();
  Map<String,Integer> expectedMap=Maps.newHashMap();
  expectedMap.put("String_Node_Str",3);
  Assert.assertEquals(expectedMap,outputMap);
}

Fixed version (ground truth):
@Test public void testDefaultConfig() throws Exception {
  Map<String,Set<String>> testMap=new HashMap<>();
  Set<String> testSet=new HashSet<>();
  testSet.add("String_Node_Str");
  testMap.put("String_Node_Str",testSet);
  DataQualityApp.DataQualityConfig config=new DataQualityApp.DataQualityConfig(WORKFLOW_SCHEDULE_MINUTES,getStreamSource(),"String_Node_Str",testMap);
  Id.Application appId=Id.Application.from(Id.Namespace.DEFAULT,"String_Node_Str");
  AppRequest<DataQualityApp.DataQualityConfig> appRequest=new AppRequest<>(new ArtifactSummary(appArtifact.getName(),appArtifact.getVersion().getVersion()),config);
  ApplicationManager applicationManager=deployApplication(appId,appRequest);
  MapReduceManager mrManager=applicationManager.getMapReduceManager("String_Node_Str").start();
  mrManager.waitForFinish(180,TimeUnit.SECONDS);
  Table logDataStore=(Table)getDataset("String_Node_Str").get();
  DiscreteValuesHistogram discreteValuesHistogramAggregationFunction=new DiscreteValuesHistogram();
  Row row;
  try (Scanner scanner=logDataStore.scan(null,null)){
    while ((row=scanner.next()) != null) {
      if (Bytes.toString(row.getRow()).contains("String_Node_Str")) {
        Map<byte[],byte[]> columnsMapBytes=row.getColumns();
        byte[] output=columnsMapBytes.get(Bytes.toBytes("String_Node_Str"));
        if (output != null) {
          discreteValuesHistogramAggregationFunction.combine(output);
        }
      }
    }
  }
   Map<String,Integer> outputMap=discreteValuesHistogramAggregationFunction.retrieveAggregation();
  Map<String,Integer> expectedMap=Maps.newHashMap();
  expectedMap.put("String_Node_Str",3);
  Assert.assertEquals(expectedMap,outputMap);
}