Program: 69240
Project: 69240
Buggy source:
@Test public void testStraightForward(){
  HttpServletRequest requestMock=Mockito.mock(HttpServletRequest.class);
  DiscoveryResponse[] response=this.subject.getDiscovery(requestMock);
  Assert.assertEquals(3,response.length);
  Assert.assertEquals(1,response[0].getTargets().length);
  Assert.assertEquals("String_Node_Str",response[0].getTargets()[0]);
  Assert.assertEquals(1,response[1].getTargets().length);
  Assert.assertEquals("String_Node_Str",response[1].getTargets()[0]);
  Assert.assertEquals(1,response[2].getTargets().length);
  Assert.assertEquals("String_Node_Str",response[2].getTargets()[0]);
  DiscoveryLabel label=null;
  label=response[0].getLabels();
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_applicationId());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_applicationName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_instanceId());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_instanceNumber());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_orgName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_spaceName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_path());
  label=response[1].getLabels();
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_applicationId());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_applicationName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_instanceId());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_instanceNumber());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_orgName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_spaceName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_path());
  label=response[2].getLabels();
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_applicationId());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_applicationName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_instanceId());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_instanceNumber());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_orgName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_spaceName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_path());
}

Fixed version (ground truth):
@Test public void testStraightForward(){
  HttpServletRequest requestMock=Mockito.mock(HttpServletRequest.class);
  ResponseEntity<DiscoveryResponse[]> responseEntity=this.subject.getDiscovery(requestMock);
  DiscoveryResponse[] response=responseEntity.getBody();
  Assert.assertEquals(3,response.length);
  Assert.assertEquals(1,response[0].getTargets().length);
  Assert.assertEquals("String_Node_Str",response[0].getTargets()[0]);
  Assert.assertEquals(1,response[1].getTargets().length);
  Assert.assertEquals("String_Node_Str",response[1].getTargets()[0]);
  Assert.assertEquals(1,response[2].getTargets().length);
  Assert.assertEquals("String_Node_Str",response[2].getTargets()[0]);
  DiscoveryLabel label=null;
  label=response[0].getLabels();
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_applicationId());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_applicationName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_instanceId());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_instanceNumber());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_orgName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_spaceName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_path());
  label=response[1].getLabels();
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_applicationId());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_applicationName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_instanceId());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_instanceNumber());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_orgName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_spaceName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_path());
  label=response[2].getLabels();
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_applicationId());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_applicationName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_instanceId());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_instanceNumber());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_orgName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_spaceName());
  Assert.assertEquals("String_Node_Str",label.get__meta_promregator_target_path());
}