Program: 49542
Project: 49542
Buggy source:
@Before public void setUp() throws Exception {
  o=createOwner();
  ownerCurator.create(o);
  virtHost=new Product(PRODUCT_VIRT_HOST,PRODUCT_VIRT_HOST);
  virtHostPlatform=new Product(PRODUCT_VIRT_HOST_PLATFORM,PRODUCT_VIRT_HOST_PLATFORM);
  virtGuest=new Product(PRODUCT_VIRT_GUEST,PRODUCT_VIRT_GUEST);
  monitoring=new Product(PRODUCT_MONITORING,PRODUCT_MONITORING);
  provisioning=new Product(PRODUCT_PROVISIONING,PRODUCT_PROVISIONING);
  virtHost.addAttribute(new ProductAttribute(PRODUCT_VIRT_HOST,"String_Node_Str"));
  virtHostPlatform.addAttribute(new ProductAttribute(PRODUCT_VIRT_HOST_PLATFORM,"String_Node_Str"));
  virtGuest.addAttribute(new ProductAttribute(PRODUCT_VIRT_GUEST,"String_Node_Str"));
  monitoring.addAttribute(new ProductAttribute(PRODUCT_MONITORING,"String_Node_Str"));
  provisioning.addAttribute(new ProductAttribute(PRODUCT_PROVISIONING,"String_Node_Str"));
  productAdapter.createProduct(virtHost);
  productAdapter.createProduct(virtHostPlatform);
  productAdapter.createProduct(virtGuest);
  productAdapter.createProduct(monitoring);
  productAdapter.createProduct(provisioning);
  subCurator.create(new Subscription(o,virtHost,new HashSet<Product>(),5L,new Date(),TestUtil.createDate(3020,12,12),new Date()));
  subCurator.create(new Subscription(o,virtHostPlatform,new HashSet<Product>(),5L,new Date(),TestUtil.createDate(3020,12,12),new Date()));
  subCurator.create(new Subscription(o,monitoring,new HashSet<Product>(),5L,new Date(),TestUtil.createDate(3020,12,12),new Date()));
  subCurator.create(new Subscription(o,provisioning,new HashSet<Product>(),5L,new Date(),TestUtil.createDate(3020,12,12),new Date()));
  poolManager.refreshPools(o);
  this.systemType=new ConsumerType(ConsumerTypeEnum.SYSTEM);
  consumerTypeCurator.create(systemType);
  parentSystem=new Consumer("String_Node_Str","String_Node_Str",o,systemType);
  parentSystem.getFacts().put("String_Node_Str","String_Node_Str");
  consumerCurator.create(parentSystem);
  childVirtSystem=new Consumer("String_Node_Str","String_Node_Str",o,systemType);
  parentSystem.addChildConsumer(childVirtSystem);
  consumerCurator.create(childVirtSystem);
}

Fixed version (ground truth):
@Before public void setUp() throws Exception {
  o=createOwner();
  ownerCurator.create(o);
  virtHost=new Product(PRODUCT_VIRT_HOST,PRODUCT_VIRT_HOST);
  virtHostPlatform=new Product(PRODUCT_VIRT_HOST_PLATFORM,PRODUCT_VIRT_HOST_PLATFORM);
  virtGuest=new Product(PRODUCT_VIRT_GUEST,PRODUCT_VIRT_GUEST);
  monitoring=new Product(PRODUCT_MONITORING,PRODUCT_MONITORING);
  monitoring.addAttribute(new ProductAttribute("String_Node_Str","String_Node_Str"));
  provisioning=new Product(PRODUCT_PROVISIONING,PRODUCT_PROVISIONING);
  virtHost.addAttribute(new ProductAttribute(PRODUCT_VIRT_HOST,"String_Node_Str"));
  virtHostPlatform.addAttribute(new ProductAttribute(PRODUCT_VIRT_HOST_PLATFORM,"String_Node_Str"));
  virtGuest.addAttribute(new ProductAttribute(PRODUCT_VIRT_GUEST,"String_Node_Str"));
  monitoring.addAttribute(new ProductAttribute(PRODUCT_MONITORING,"String_Node_Str"));
  provisioning.addAttribute(new ProductAttribute(PRODUCT_PROVISIONING,"String_Node_Str"));
  productAdapter.createProduct(virtHost);
  productAdapter.createProduct(virtHostPlatform);
  productAdapter.createProduct(virtGuest);
  productAdapter.createProduct(monitoring);
  productAdapter.createProduct(provisioning);
  subCurator.create(new Subscription(o,virtHost,new HashSet<Product>(),5L,new Date(),TestUtil.createDate(3020,12,12),new Date()));
  subCurator.create(new Subscription(o,virtHostPlatform,new HashSet<Product>(),5L,new Date(),TestUtil.createDate(3020,12,12),new Date()));
  subCurator.create(new Subscription(o,monitoring,new HashSet<Product>(),5L,new Date(),TestUtil.createDate(3020,12,12),new Date()));
  subCurator.create(new Subscription(o,provisioning,new HashSet<Product>(),5L,new Date(),TestUtil.createDate(3020,12,12),new Date()));
  poolManager.refreshPools(o);
  this.systemType=new ConsumerType(ConsumerTypeEnum.SYSTEM);
  consumerTypeCurator.create(systemType);
  parentSystem=new Consumer("String_Node_Str","String_Node_Str",o,systemType);
  parentSystem.getFacts().put("String_Node_Str","String_Node_Str");
  consumerCurator.create(parentSystem);
  childVirtSystem=new Consumer("String_Node_Str","String_Node_Str",o,systemType);
  parentSystem.addChildConsumer(childVirtSystem);
  consumerCurator.create(childVirtSystem);
}