Program: 133704
Project: 133704
Buggy source:
/** 
 * <!-- begin-UML-doc --> <p> </p> <!-- end-UML-doc -->
 */
@Test public void checkLoad(){
  String separator=System.getProperty("String_Node_Str");
  String userDir=System.getProperty("String_Node_Str") + separator + "String_Node_Str"+ separator+ "String_Node_Str";
  String expectedFilePath=userDir + separator + "String_Node_Str";
  File loadFile=new File(expectedFilePath);
  emfComponent.save();
  assertTrue(emfComponent.load(loadFile));
  emfComponent.save();
  EMFTreeComposite emfTree=(EMFTreeComposite)emfComponent.getEMFTreeComposite();
  assertNotNull(emfTree);
  assertEquals("String_Node_Str",emfTree.getName());
  assertEquals(1,emfTree.getNumberOfChildren());
  EMFTreeComposite shipOrder=(EMFTreeComposite)emfTree.getChildAtIndex(0);
  assertEquals(3,shipOrder.getNumberOfChildren());
  assertEquals("String_Node_Str",shipOrder.getName());
  assertEquals(1,shipOrder.getNumberOfDataNodes());
  DataComponent component=(DataComponent)shipOrder.getActiveDataNode();
  assertEquals("String_Node_Str",component.getName());
  assertEquals(2,component.retrieveAllEntries().size());
  TreeComposite child1=shipOrder.getChildAtIndex(0);
  assertEquals("String_Node_Str",child1.getName());
  assertEquals(0,child1.getNumberOfChildren());
  assertEquals(1,child1.getNumberOfDataNodes());
  component=(DataComponent)child1.getActiveDataNode();
  assertEquals("String_Node_Str",component.getName());
  assertEquals(4,component.retrieveAllEntries().size());
  TreeComposite child2=shipOrder.getChildAtIndex(1);
  assertEquals("String_Node_Str",child2.getName());
  assertEquals(0,child2.getNumberOfChildren());
  assertEquals(1,child2.getNumberOfDataNodes());
  component=(DataComponent)child2.getActiveDataNode();
  assertEquals("String_Node_Str",component.getName());
  assertEquals(4,component.retrieveAllEntries().size());
  TreeComposite child3=shipOrder.getChildAtIndex(2);
  assertEquals("String_Node_Str",child3.getName());
  assertEquals(0,child3.getNumberOfChildren());
  assertEquals(1,child3.getNumberOfDataNodes());
  component=(DataComponent)child3.getActiveDataNode();
  assertEquals("String_Node_Str",component.getName());
  assertEquals(4,component.retrieveAllEntries().size());
  String xmlString=emfComponent.saveToString();
  assertNotNull(xmlString);
  assertEquals(2,xmlString.split(Pattern.quote("String_Node_Str"),-1).length - 1);
}

Fixed version (ground truth):
/** 
 * <!-- begin-UML-doc --> <p> </p> <!-- end-UML-doc -->
 */
@Test public void checkLoad(){
  String separator=System.getProperty("String_Node_Str");
  String userDir=System.getProperty("String_Node_Str") + separator + "String_Node_Str"+ separator+ "String_Node_Str";
  String expectedFilePath=userDir + separator + "String_Node_Str";
  File loadFile=new File(expectedFilePath);
  emfComponent.save();
  assertTrue(emfComponent.load(loadFile));
  emfComponent.save();
  EMFTreeComposite emfTree=(EMFTreeComposite)emfComponent.getEMFTreeComposite();
  assertNotNull(emfTree);
  assertEquals("String_Node_Str",emfTree.getName());
  assertEquals(1,emfTree.getNumberOfChildren());
  EMFTreeComposite shipOrder=(EMFTreeComposite)emfTree.getChildAtIndex(0);
  assertEquals(3,shipOrder.getNumberOfChildren());
  assertEquals("String_Node_Str",shipOrder.getName());
  assertEquals(1,shipOrder.getNumberOfDataNodes());
  DataComponent component=(DataComponent)shipOrder.getActiveDataNode();
  assertEquals("String_Node_Str",component.getName());
  assertEquals(2,component.retrieveAllEntries().size());
  assertEquals(3,shipOrder.getNumberOfChildren());
  int itemCount=0;
  int shiptoCount=0;
  for (int i=0; i < 3; i++) {
    TreeComposite child=shipOrder.getChildAtIndex(i);
    assertNotNull(child);
    if ("String_Node_Str".equals(child.getName())) {
      shiptoCount++;
      assertEquals(0,child.getNumberOfChildren());
      assertEquals(1,child.getNumberOfDataNodes());
      component=(DataComponent)child.getActiveDataNode();
      assertEquals("String_Node_Str",component.getName());
      assertEquals(4,component.retrieveAllEntries().size());
    }
 else     if ("String_Node_Str".equals(child.getName())) {
      itemCount++;
      assertEquals(0,child.getNumberOfChildren());
      assertEquals(1,child.getNumberOfDataNodes());
      component=(DataComponent)child.getActiveDataNode();
      assertEquals("String_Node_Str",component.getName());
      assertEquals(4,component.retrieveAllEntries().size());
    }
 else {
      fail();
    }
  }
  assertEquals(1,shiptoCount);
  assertEquals(2,itemCount);
  String xmlString=emfComponent.saveToString();
  assertNotNull(xmlString);
  assertEquals(2,xmlString.split(Pattern.quote("String_Node_Str"),-1).length - 1);
}