Program: 115504
Project: 115504
Buggy source:
@Test public void testCartridgeGroup(){
  try {
    log.info("String_Node_Str");
    boolean addedC1=restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "String_Node_Str"+ "String_Node_Str",RestConstants.CARTRIDGES,RestConstants.CARTRIDGES_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),addedC1,true);
    boolean addedC2=restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "String_Node_Str"+ "String_Node_Str",RestConstants.CARTRIDGES,RestConstants.CARTRIDGES_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),addedC2,true);
    boolean addedC3=restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "String_Node_Str"+ "String_Node_Str",RestConstants.CARTRIDGES,RestConstants.CARTRIDGES_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),addedC3,true);
    boolean added=restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGE_GROUPS_PATH + "String_Node_Str"+ "String_Node_Str",RestConstants.CARTRIDGE_GROUPS,RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),added,true);
    CartridgeGroupBean bean=(CartridgeGroupBean)restClient.getEntity(RestConstants.CARTRIDGE_GROUPS,"String_Node_Str",CartridgeGroupBean.class,RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),bean.getName(),"String_Node_Str");
    boolean updated=restClient.updateEntity(TEST_PATH + RestConstants.CARTRIDGE_GROUPS_PATH + "String_Node_Str"+ "String_Node_Str",RestConstants.CARTRIDGE_GROUPS,RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),updated,true);
    CartridgeGroupBean updatedBean=(CartridgeGroupBean)restClient.getEntity(RestConstants.CARTRIDGE_GROUPS,"String_Node_Str",CartridgeGroupBean.class,RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),updatedBean.getName(),"String_Node_Str");
    boolean removed=restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS,"String_Node_Str",RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),removed,true);
    CartridgeGroupBean beanRemoved=(CartridgeGroupBean)restClient.getEntity(RestConstants.CARTRIDGE_GROUPS,"String_Node_Str",CartridgeGroupBean.class,RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str" + "String_Node_Str","String_Node_Str"),beanRemoved,null);
    boolean removedC1=restClient.removeEntity(RestConstants.CARTRIDGES,"String_Node_Str",RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),removedC1,true);
    boolean removedC2=restClient.removeEntity(RestConstants.CARTRIDGES,"String_Node_Str",RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),removedC2,true);
    boolean removedC3=restClient.removeEntity(RestConstants.CARTRIDGES,"String_Node_Str",RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),removedC3,true);
    log.info("String_Node_Str");
  }
 catch (  Exception e) {
    log.error("String_Node_Str",e);
    assertTrue("String_Node_Str",false);
  }
}

Fixed version (ground truth):
@Test public void testCartridgeGroup(){
  try {
    log.info("String_Node_Str");
    boolean addedC1=restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "String_Node_Str"+ "String_Node_Str",RestConstants.CARTRIDGES,RestConstants.CARTRIDGES_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),addedC1,true);
    boolean addedC2=restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "String_Node_Str"+ "String_Node_Str",RestConstants.CARTRIDGES,RestConstants.CARTRIDGES_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),addedC2,true);
    boolean addedC3=restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "String_Node_Str"+ "String_Node_Str",RestConstants.CARTRIDGES,RestConstants.CARTRIDGES_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),addedC3,true);
    boolean added=restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGE_GROUPS_PATH + "String_Node_Str"+ "String_Node_Str",RestConstants.CARTRIDGE_GROUPS,RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),added,true);
    CartridgeGroupBean bean=(CartridgeGroupBean)restClient.getEntity(RestConstants.CARTRIDGE_GROUPS,"String_Node_Str",CartridgeGroupBean.class,RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),bean.getName(),"String_Node_Str");
    boolean updated=restClient.updateEntity(TEST_PATH + RestConstants.CARTRIDGE_GROUPS_PATH + "String_Node_Str"+ "String_Node_Str",RestConstants.CARTRIDGE_GROUPS,RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),updated,true);
    CartridgeGroupBean updatedBean=(CartridgeGroupBean)restClient.getEntity(RestConstants.CARTRIDGE_GROUPS,"String_Node_Str",CartridgeGroupBean.class,RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),updatedBean.getName(),"String_Node_Str");
    boolean removedC1=restClient.removeEntity(RestConstants.CARTRIDGES,"String_Node_Str",RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str" + "String_Node_Str","String_Node_Str"),removedC1,false);
    boolean removedC2=restClient.removeEntity(RestConstants.CARTRIDGES,"String_Node_Str",RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str" + "String_Node_Str","String_Node_Str"),removedC2,false);
    boolean removedC3=restClient.removeEntity(RestConstants.CARTRIDGES,"String_Node_Str",RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str" + "String_Node_Str","String_Node_Str"),removedC3,false);
    boolean removed=restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS,"String_Node_Str",RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),removed,true);
    CartridgeGroupBean beanRemoved=(CartridgeGroupBean)restClient.getEntity(RestConstants.CARTRIDGE_GROUPS,"String_Node_Str",CartridgeGroupBean.class,RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str" + "String_Node_Str","String_Node_Str"),beanRemoved,null);
    removedC1=restClient.removeEntity(RestConstants.CARTRIDGES,"String_Node_Str",RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),removedC1,true);
    removedC2=restClient.removeEntity(RestConstants.CARTRIDGES,"String_Node_Str",RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),removedC2,true);
    removedC3=restClient.removeEntity(RestConstants.CARTRIDGES,"String_Node_Str",RestConstants.CARTRIDGE_GROUPS_NAME);
    assertEquals(String.format("String_Node_Str","String_Node_Str"),removedC3,true);
    log.info("String_Node_Str");
  }
 catch (  Exception e) {
    log.error("String_Node_Str",e);
    assertTrue("String_Node_Str",false);
  }
}