Program: 161150
Project: 161150
Buggy source:
@Test public void search_inverse(){
  databaseHelper.addObject("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  final WhoisResources whoisResources=RestTest.target(getPort(),"String_Node_Str").request(MediaType.APPLICATION_XML).get(WhoisResources.class);
  assertThat(whoisResources.getErrorMessages(),is(nullValue()));
  assertThat(whoisResources.getWhoisObjects(),hasSize(4));
  WhoisObject aut_num=whoisResources.getWhoisObjects().get(0);
  assertThat(aut_num.getLink(),is(new Link("String_Node_Str","String_Node_Str")));
  assertThat(aut_num.getAttributes(),contains(new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str",null,"String_Node_Str",new Link("String_Node_Str","String_Node_Str")),new Attribute("String_Node_Str","String_Node_Str",null,"String_Node_Str",new Link("String_Node_Str","String_Node_Str")),new Attribute("String_Node_Str","String_Node_Str",null,"String_Node_Str",new Link("String_Node_Str","String_Node_Str")),new Attribute("String_Node_Str","String_Node_Str")));
  WhoisObject person=whoisResources.getWhoisObjects().get(1);
  assertThat(person.getLink(),is(new Link("String_Node_Str","String_Node_Str")));
  assertThat(person.getAttributes(),contains(new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str",null,"String_Node_Str",new Link("String_Node_Str","String_Node_Str")),new Attribute("String_Node_Str","String_Node_Str","String_Node_Str",null,null)));
  WhoisObject mntner=whoisResources.getWhoisObjects().get(2);
  assertThat(mntner.getLink(),is(new Link("String_Node_Str","String_Node_Str")));
  assertThat(mntner.getAttributes(),contains(new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str",null,"String_Node_Str",new Link("String_Node_Str","String_Node_Str")),new Attribute("String_Node_Str","String_Node_Str","String_Node_Str",null,null),new Attribute("String_Node_Str","String_Node_Str",null,"String_Node_Str",new Link("String_Node_Str","String_Node_Str")),new Attribute("String_Node_Str","String_Node_Str",null,"String_Node_Str",new Link("String_Node_Str","String_Node_Str")),new Attribute("String_Node_Str","String_Node_Str","String_Node_Str",null,null)));
  WhoisObject person2=whoisResources.getWhoisObjects().get(3);
  assertThat(person2.getLink(),is(new Link("String_Node_Str","String_Node_Str")));
  assertThat(person2.getAttributes(),contains(new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str",null,"String_Node_Str",new Link("String_Node_Str","String_Node_Str")),new Attribute("String_Node_Str","String_Node_Str","String_Node_Str",null,null)));
}

Fixed version (ground truth):
@Test public void search_inverse(){
  databaseHelper.addObject("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  final WhoisResources whoisResources=RestTest.target(getPort(),"String_Node_Str").request(MediaType.APPLICATION_XML).get(WhoisResources.class);
  assertThat(whoisResources.getErrorMessages(),is(nullValue()));
  assertThat(whoisResources.getWhoisObjects(),hasSize(4));
  WhoisObject aut_num=whoisResources.getWhoisObjects().get(0);
  assertThat(aut_num.getLink(),is(new Link("String_Node_Str","String_Node_Str")));
  assertThat(aut_num.getAttributes(),contains(new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str",null,"String_Node_Str",new Link("String_Node_Str","String_Node_Str")),new Attribute("String_Node_Str","String_Node_Str",null,"String_Node_Str",new Link("String_Node_Str","String_Node_Str")),new Attribute("String_Node_Str","String_Node_Str",null,"String_Node_Str",new Link("String_Node_Str","String_Node_Str")),new Attribute("String_Node_Str","String_Node_Str")));
  WhoisObject person=whoisResources.getWhoisObjects().get(1);
  assertThat(person.getLink(),is(new Link("String_Node_Str","String_Node_Str")));
  assertThat(person.getAttributes(),contains(new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str",null,"String_Node_Str",new Link("String_Node_Str","String_Node_Str")),new Attribute("String_Node_Str","String_Node_Str","String_Node_Str",null,null)));
  WhoisObject mntner=whoisResources.getWhoisObjects().get(2);
  assertThat(mntner.getLink(),is(new Link("String_Node_Str","String_Node_Str")));
  assertThat(mntner.getAttributes(),contains(new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str",null,"String_Node_Str",new Link("String_Node_Str","String_Node_Str")),new Attribute("String_Node_Str","String_Node_Str","String_Node_Str",null,null),new Attribute("String_Node_Str","String_Node_Str","String_Node_Str",null,null),new Attribute("String_Node_Str","String_Node_Str",null,"String_Node_Str",new Link("String_Node_Str","String_Node_Str")),new Attribute("String_Node_Str","String_Node_Str",null,"String_Node_Str",new Link("String_Node_Str","String_Node_Str")),new Attribute("String_Node_Str","String_Node_Str","String_Node_Str",null,null)));
  WhoisObject person2=whoisResources.getWhoisObjects().get(3);
  assertThat(person2.getLink(),is(new Link("String_Node_Str","String_Node_Str")));
  assertThat(person2.getAttributes(),contains(new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str"),new Attribute("String_Node_Str","String_Node_Str",null,"String_Node_Str",new Link("String_Node_Str","String_Node_Str")),new Attribute("String_Node_Str","String_Node_Str","String_Node_Str",null,null)));
}