// The most trivial partition tree has only a unit nodes as the root:
// helper.createUnit(null, null, 100000L);
ProductPartition root = helper.createSubdivision(null, null);
ProductCanonicalCondition newProductCondition = new ProductCanonicalCondition();
newProductCondition.setCondition(ProductCanonicalConditionCondition.NEW);
helper.createUnit(root, newProductCondition, 200000L);
ProductCanonicalCondition usedProductCondition = new ProductCanonicalCondition();
usedProductCondition.setCondition(ProductCanonicalConditionCondition.USED);
helper.createUnit(root, usedProductCondition, 100000L);
ProductPartition otherCondition =
helper.createSubdivision(root, new ProductCanonicalCondition());
ProductBrand coolProductBrand = new ProductBrand();
coolProductBrand.setValue("CoolBrand");
helper.createUnit(otherCondition, coolProductBrand, 900000L);