// Use this set for successful providing queries:
Set<Entitlement> successResult = new HashSet<Entitlement>();
successResult.add(new Entitlement()); // just need something in there
Content normalContent = createContent(CONTENT_NAME, CONTENT_ID,
CONTENT_LABEL, CONTENT_TYPE, CONTENT_VENDOR, CONTENT_URL,
CONTENT_GPG_URL, ARCH_LABEL);
// Change label to prevent an equals match:
Content modContent = createContent(CONTENT_NAME, CONTENT_ID + "_2",
"differentlabel", CONTENT_TYPE, CONTENT_VENDOR, CONTENT_URL,
CONTENT_GPG_URL, ARCH_LABEL);
modContent.setLabel("mod content");
Set<String> modifiedProductIds = new HashSet<String>(
Arrays.asList(new String[]{ "product1", "product2" }));
modContent.setModifiedProductIds(modifiedProductIds);
modProduct.addContent(normalContent);
modProduct.addContent(modContent);
// First check that if we have no entitlements providing the modified