assertEquals(range.getEndDate(), validRange.getEndDate());
}
@Test
public void validRangeCorrectPartialEntitlementNoGap() {
Consumer c = mockConsumer(PRODUCT_1);
Calendar cal = Calendar.getInstance();
Date now = cal.getTime();
DateRange range1 = rangeRelativeToDate(now, -4, 4);
DateRange range2 = rangeRelativeToDate(now, 4, 9);
c.addEntitlement(mockStackedEntitlement(c, range1, STACK_ID_1, PRODUCT_1, 1,
PRODUCT_1));
c.addEntitlement(mockStackedEntitlement(c, range2, STACK_ID_1, PRODUCT_1, 1,
PRODUCT_1));
List<Entitlement> ents = new LinkedList<Entitlement>(c.getEntitlements());
mockEntCurator(c, ents);
ComplianceStatus status = compliance.getStatus(c, now);
ConsumerInstalledProductEnricher calculator =
new ConsumerInstalledProductEnricher(c, status, compliance);