Program: 48534
Project: 48534
Buggy source:
private void testStatusQuery(){
  provider=new AmbariImpl("String_Node_Str",8080,"String_Node_Str","String_Node_Str",null);
  ClusterBlueprint blueprint=new ClusterBlueprint();
  blueprint.setHadoopStack(new HadoopStack());
  blueprint.setName("String_Node_Str");
  List<NodeGroupInfo> nodeGroups=new ArrayList<NodeGroupInfo>();
  NodeGroupInfo group=new NodeGroupInfo();
  nodeGroups.add(group);
  blueprint.setNodeGroups(nodeGroups);
  group.setInstanceNum(5);
  List<NodeInfo> nodes=new ArrayList<NodeInfo>();
  group.setNodes(nodes);
  List<String> roles=new ArrayList<String>();
  group.setRoles(roles);
  NodeInfo node=new NodeInfo();
  node.setHostname("String_Node_Str");
  node.setName("String_Node_Str");
  nodes.add(node);
  node=new NodeInfo();
  node.setHostname("String_Node_Str");
  node.setName("String_Node_Str");
  nodes.add(node);
  node=new NodeInfo();
  node.setHostname("String_Node_Str");
  node.setName("String_Node_Str");
  node=new NodeInfo();
  node.setHostname("String_Node_Str");
  node.setName("String_Node_Str");
  nodes.add(node);
  node=new NodeInfo();
  node.setHostname("String_Node_Str");
  node.setName("String_Node_Str");
  nodes.add(node);
  ClusterReport report=provider.queryClusterStatus(blueprint);
  Assert.assertTrue(report.getStatus() == ServiceStatus.STARTED);
  report.getNodeReports();
  for (  NodeReport nodeReport : report.getNodeReports().values()) {
    Assert.assertTrue(nodeReport.getStatus() == ServiceStatus.STARTED);
  }
}

Fixed version (ground truth):
private void testStatusQuery(){
  provider=new AmbariImpl("String_Node_Str",8080,"String_Node_Str","String_Node_Str",null);
  ClusterBlueprint blueprint=new ClusterBlueprint();
  blueprint.setHadoopStack(new HadoopStack());
  blueprint.getHadoopStack().setVendor("String_Node_Str");
  blueprint.getHadoopStack().setFullVersion("String_Node_Str");
  blueprint.setName("String_Node_Str");
  List<NodeGroupInfo> nodeGroups=new ArrayList<NodeGroupInfo>();
  NodeGroupInfo group=new NodeGroupInfo();
  nodeGroups.add(group);
  blueprint.setNodeGroups(nodeGroups);
  group.setInstanceNum(5);
  List<NodeInfo> nodes=new ArrayList<NodeInfo>();
  group.setNodes(nodes);
  List<String> roles=new ArrayList<String>();
  group.setRoles(roles);
  NodeInfo node=new NodeInfo();
  node.setHostname("String_Node_Str");
  node.setName("String_Node_Str");
  node.setVolumes(new ArrayList<String>());
  nodes.add(node);
  node=new NodeInfo();
  node.setHostname("String_Node_Str");
  node.setName("String_Node_Str");
  node.setVolumes(new ArrayList<String>());
  nodes.add(node);
  node=new NodeInfo();
  node.setHostname("String_Node_Str");
  node.setName("String_Node_Str");
  node.setVolumes(new ArrayList<String>());
  nodes.add(node);
  node=new NodeInfo();
  node.setHostname("String_Node_Str");
  node.setName("String_Node_Str");
  node.setVolumes(new ArrayList<String>());
  nodes.add(node);
  node=new NodeInfo();
  node.setHostname("String_Node_Str");
  node.setName("String_Node_Str");
  node.setVolumes(new ArrayList<String>());
  nodes.add(node);
  ClusterReport report=provider.queryClusterStatus(blueprint);
  Assert.assertTrue(report.getStatus() == ServiceStatus.STARTED);
  report.getNodeReports();
  for (  NodeReport nodeReport : report.getNodeReports().values()) {
    Assert.assertTrue(nodeReport.getStatus() == ServiceStatus.STARTED);
  }
}