DEFAULT_CONTRACT, DEFAULT_ACCOUNT, DEFAULT_ORDER);
Subscription sub = new Subscription(owner, product,
new HashSet<Product>(), quantity, startDate, endDate,
TestUtil.createDate(2010, 2, 12));
subCurator.create(sub);
p.setSourceSubscription(new SourceSubscription(sub.getId(), "master"));
for (ProductAttribute pa : product.getAttributes()) {
p.addProductAttribute(new ProductPoolAttribute(pa.getName(),
pa.getValue(), product.getId()));
}
return poolCurator.create(p);