Program: 104393
Project: 104393
Buggy source:
/** 
 * Creates a number of dummy contacts and fills the specified provider with them.
 * @param provider the <tt>MockProvider</tt> to fill in.
 */
private void fillMockContactList(MockProvider provider){
  MockPersistentPresenceOperationSet mockOpSet=(MockPersistentPresenceOperationSet)provider.getSupportedOperationSets().get(OperationSetPersistentPresence.class.getName());
  MockContactGroup root=(MockContactGroup)mockOpSet.getServerStoredContactListRoot();
  root.addContact(new MockContact("String_Node_Str",provider));
  root.addContact(new MockContact("String_Node_Str",provider));
  root.addContact(new MockContact("String_Node_Str",provider));
  mockContactToRename=new MockContact("String_Node_Str",provider);
  root.addContact(mockContactToRename);
  mockContactToReorder=new MockContact("String_Node_Str",provider);
  root.addContact(mockContactToReorder);
  topLevelMockGroup=new MockContactGroup(topLevelGroupName,provider);
  subLevelContact=new MockContact(subLevelContactName,provider);
  topLevelMockGroup.addContact(subLevelContact);
  topLevelMockGroup.addContact(new MockContact("String_Node_Str",provider));
  topLevelMockGroup.addContact(new MockContact("String_Node_Str",provider));
  subLevelGroup=new MockContactGroup("String_Node_Str",provider);
  subsubContact=new MockContact("String_Node_Str",provider);
  subLevelGroup.addContact(subsubContact);
  subLevelGroup.addContact(new MockContact("String_Node_Str",provider));
  subLevelGroup.addContact(new MockContact("String_Node_Str",provider));
  subLevelGroup.addContact(new MockContact("String_Node_Str",provider));
  topLevelMockGroup.addSubgroup(subLevelGroup);
  root.addSubgroup(topLevelMockGroup);
}

Fixed version (ground truth):
/** 
 * Creates a number of dummy contacts and fills the specified provider with them.
 * @param provider the <tt>MockProvider</tt> to fill in.
 */
private void fillMockContactList(MockProvider provider){
  MockPersistentPresenceOperationSet mockOpSet=(MockPersistentPresenceOperationSet)provider.getSupportedOperationSets().get(OperationSetPersistentPresence.class.getName());
  MockContactGroup root=(MockContactGroup)mockOpSet.getServerStoredContactListRoot();
  root.addContact(new MockContact("String_Node_Str",provider));
  root.addContact(new MockContact("String_Node_Str",provider));
  root.addContact(new MockContact("String_Node_Str",provider));
  MockContact someOfflineContact=new MockContact("String_Node_Str",provider);
  someOfflineContact.setPresenceStatus(MockStatusEnum.MOCK_STATUS_00);
  root.addContact(someOfflineContact);
  mockContactToRename=new MockContact("String_Node_Str",provider);
  root.addContact(mockContactToRename);
  mockContactToReorder=new MockContact("String_Node_Str",provider);
  mockContactToReorder.setPresenceStatus(MockStatusEnum.MOCK_STATUS_00);
  root.addContact(mockContactToReorder);
  topLevelMockGroup=new MockContactGroup(topLevelGroupName,provider);
  subLevelContact=new MockContact(subLevelContactName,provider);
  topLevelMockGroup.addContact(subLevelContact);
  topLevelMockGroup.addContact(new MockContact("String_Node_Str",provider));
  topLevelMockGroup.addContact(new MockContact("String_Node_Str",provider));
  subLevelGroup=new MockContactGroup("String_Node_Str",provider);
  subsubContact=new MockContact("String_Node_Str",provider);
  subLevelGroup.addContact(subsubContact);
  subLevelGroup.addContact(new MockContact("String_Node_Str",provider));
  subLevelGroup.addContact(new MockContact("String_Node_Str",provider));
  subLevelGroup.addContact(new MockContact("String_Node_Str",provider));
  topLevelMockGroup.addSubgroup(subLevelGroup);
  root.addSubgroup(topLevelMockGroup);
}