Product extends BusinessObject { public CustomObjects CustomObjects() { if (customObjects == null) { customObjects = new CustomObjects(this); } return customObjects; } Product(Tracker tracker); Action getAction(); String getProductId(); String getCategory1(); String getCategory2(); String getCategory3(); String getCategory4(); String getCategory5(); String getCategory6(); int getQuantity(); double getUnitPriceTaxIncluded(); double getUnitPriceTaxFree(); double getDiscountTaxIncluded(); double getDiscountTaxFree(); String getPromotionalCode(); Product setAction(Action action); Product setProductId(String productId); Product setCategory1(String category1); Product setCategory2(String category2); Product setCategory3(String category3); Product setCategory4(String category4); Product setCategory5(String category5); Product setCategory6(String category6); Product setQuantity(int quantity); Product setUnitPriceTaxIncluded(double unitPriceTaxIncluded); Product setUnitPriceTaxFree(double unitPriceTaxFree); Product setDiscountTaxIncluded(double discountTaxIncluded); Product setDiscountTaxFree(double discountTaxFree); Product setPromotionalCode(String promotionalCode); CustomObjects CustomObjects(); void sendView();  }
@Test public void CustomObjectsTest() { CustomObjects customObjects = product.CustomObjects(); Assert.assertNotNull(product.CustomObjects()); Assert.assertEquals(product.CustomObjects(), customObjects); }