Program: 64993
Project: 64993
Buggy source:
/** 
 * After getting the image item instance from the design file, set properties on this image to see the property can be correctly set on the image and also can be written into the design file.
 * @throws Exception if errors occur when reads or writes the design file
 */
public void testWriteProperties() throws Exception {
  openDesign("String_Node_Str");
  image=findImageItemByName("String_Node_Str");
  handle=image.handle(design);
  handle.setProportionalScale(false);
  image=findImageItemByName("String_Node_Str");
  handle=image.handle(design);
  handle.setName("String_Node_Str");
  assertEquals("String_Node_Str",handle.getName());
  handle.setSize(DesignChoiceConstants.IMAGE_SIZE_SIZE_TO_IMAGE);
  assertTrue(handle.getSize().compareToIgnoreCase(DesignChoiceConstants.IMAGE_SIZE_SIZE_TO_IMAGE) == 0);
  handle.setScale(4.0f);
  assertTrue(4.0 == handle.getScale());
  handle.setImageName("String_Node_Str");
  assertEquals("String_Node_Str",handle.getImageName());
  image=findImageItemByName("String_Node_Str");
  handle.setTypeExpression("String_Node_Str");
  assertEquals("String_Node_Str",handle.getTypeExpression());
  handle.setValueExpression("String_Node_Str");
  assertEquals("String_Node_Str",handle.getValueExpression());
  image=findImageItemByName("String_Node_Str");
  handle=image.handle(design);
  handle.setImageName("String_Node_Str");
  handle.setBookmark("String_Node_Str");
  ActionHandle actionHandle=handle.getActionHandle();
  actionHandle.setURI("String_Node_Str");
  handle.setHelpText("String_Node_Str");
  handle.setHelpTextKey("String_Node_Str");
  handle.setFitToContainer(false);
  handle.setRole("String_Node_Str");
  handle.setLanguage("String_Node_Str");
  handle.setOrder(1);
  save();
  assertTrue(compareFile("String_Node_Str"));
}

Fixed version (ground truth):
/** 
 * After getting the image item instance from the design file, set properties on this image to see the property can be correctly set on the image and also can be written into the design file.
 * @throws Exception if errors occur when reads or writes the design file
 */
public void testWriteProperties() throws Exception {
  openDesign("String_Node_Str");
  image=findImageItemByName("String_Node_Str");
  handle=image.handle(design);
  handle.setProportionalScale(false);
  image=findImageItemByName("String_Node_Str");
  handle=image.handle(design);
  handle.setName("String_Node_Str");
  assertEquals("String_Node_Str",handle.getName());
  handle.setSize(DesignChoiceConstants.IMAGE_SIZE_SIZE_TO_IMAGE);
  assertTrue(handle.getSize().compareToIgnoreCase(DesignChoiceConstants.IMAGE_SIZE_SIZE_TO_IMAGE) == 0);
  handle.setScale(4.0f);
  assertTrue(4.0 == handle.getScale());
  handle.setImageName("String_Node_Str");
  assertEquals("String_Node_Str",handle.getImageName());
  image=findImageItemByName("String_Node_Str");
  handle.setTypeExpression("String_Node_Str");
  assertEquals("String_Node_Str",handle.getTypeExpression());
  handle.setValueExpression("String_Node_Str");
  assertEquals("String_Node_Str",handle.getValueExpression());
  image=findImageItemByName("String_Node_Str");
  handle=image.handle(design);
  handle.setImageName("String_Node_Str");
  handle.setBookmark("String_Node_Str");
  ActionHandle actionHandle=handle.getActionHandle();
  actionHandle.setURI("String_Node_Str");
  handle.setHelpText("String_Node_Str");
  handle.setHelpTextKey("String_Node_Str");
  handle.setFitToContainer(false);
  handle.setTagType("String_Node_Str");
  handle.setLanguage("String_Node_Str");
  handle.setOrder(1);
  save();
  assertTrue(compareFile("String_Node_Str"));
}