Program: 160981
Project: 160981
Buggy source:
@Test public void update_with_override_succeeds(){
  databaseHelper.addObject(PAULETH_PALTHEN);
  databaseHelper.insertUser(User.createWithPlainTextPassword("String_Node_Str","String_Node_Str",ObjectType.PERSON));
  final RpslObject updatedObject=new RpslObjectBuilder(PAULETH_PALTHEN).append(new RpslAttribute(AttributeType.REMARKS,"String_Node_Str")).sort().get();
  final WhoisResources whoisResources=RestTest.target(getPort(),"String_Node_Str").request(MediaType.APPLICATION_XML).put(Entity.entity(whoisObjectMapper.mapRpslObjects(FormattedClientAttributeMapper.class,updatedObject),MediaType.APPLICATION_XML),WhoisResources.class);
  RestTest.assertErrorCount(whoisResources,1);
  RestTest.assertErrorMessage(whoisResources,0,"String_Node_Str","String_Node_Str");
  assertThat(whoisResources.getWhoisObjects(),hasSize(1));
  final WhoisObject object=whoisResources.getWhoisObjects().get(0);
  assertThat(object.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"),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"),new Attribute("String_Node_Str","String_Node_Str")));
  assertThat(whoisResources.getTermsAndConditions().getHref(),is(WhoisResources.TERMS_AND_CONDITIONS));
}

Fixed version (ground truth):
@Test public void update_with_override_succeeds(){
  databaseHelper.addObject(PAULETH_PALTHEN);
  databaseHelper.insertUser(User.createWithPlainTextPassword("String_Node_Str","String_Node_Str",ObjectType.PERSON));
  final RpslObject updatedObject=new RpslObjectBuilder(PAULETH_PALTHEN).append(new RpslAttribute(AttributeType.REMARKS,"String_Node_Str")).sort().get();
  final WhoisResources whoisResources=RestTest.target(getPort(),"String_Node_Str").request(MediaType.APPLICATION_XML).put(Entity.entity(whoisObjectMapper.mapRpslObjects(FormattedClientAttributeMapper.class,updatedObject),MediaType.APPLICATION_XML),WhoisResources.class);
  RestTest.assertInfoCount(whoisResources,1);
  RestTest.assertErrorMessage(whoisResources,0,"String_Node_Str","String_Node_Str");
  assertThat(whoisResources.getWhoisObjects(),hasSize(1));
  final WhoisObject object=whoisResources.getWhoisObjects().get(0);
  assertThat(object.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"),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"),new Attribute("String_Node_Str","String_Node_Str")));
  assertThat(whoisResources.getTermsAndConditions().getHref(),is(WhoisResources.TERMS_AND_CONDITIONS));
}