@Test
public void enricherSetsArchVersion() {
//test that the enricher sets the arch and version
//when they are supplied as null
Consumer c = mockConsumer(PRODUCT_1);
Calendar cal = Calendar.getInstance();
Date now = cal.getTime();
DateRange range2 = rangeRelativeToDate(now, -1, 4);
c.addEntitlement(mockEntitlement(c, PRODUCT_1, range2, PRODUCT_1));
List<Entitlement> ents = new LinkedList<Entitlement>(c.getEntitlements());
mockEntCurator(c, ents);
ComplianceStatus status = compliance.getStatus(c, now);
status.addNonCompliantProduct(PRODUCT_1);
ConsumerInstalledProduct cip = new ConsumerInstalledProduct();
c.addInstalledProduct(cip);
ConsumerInstalledProductEnricher calculator =
new ConsumerInstalledProductEnricher(c, status, compliance);
Product p = new Product(PRODUCT_1, "Awesome Product");
p.setAttribute("version", "candlepin version");
p.setAttribute("arch", "candlepin arch");