consumer = new Consumer("consumer", "registeredbybob", owner,
new ConsumerType(ConsumerTypeEnum.SYSTEM));
// Two subtly different products stacked together:
prod1 = TestUtil.createProduct();
prod1.addAttribute(new ProductAttribute("virt_limit", "2"));
prod1.addAttribute(new ProductAttribute("stacking_id", STACK));
prod1.addAttribute(new ProductAttribute("testattr1", "1"));
when(productAdapterMock.getProductById(prod1.getId())).thenReturn(prod1);
prod2 = TestUtil.createProduct();
prod2.addAttribute(new ProductAttribute("virt_limit", "unlimited"));
prod2.addAttribute(new ProductAttribute("stacking_id", STACK));
prod2.addAttribute(new ProductAttribute("testattr2", "2"));
when(productAdapterMock.getProductById(prod2.getId())).thenReturn(prod2);
provided1 = TestUtil.createProduct();
provided2 = TestUtil.createProduct();
provided3 = TestUtil.createProduct();