@Test
public void testUuidIncludedWhenNotDeletedAndWasCreatedBeforeTargetDate() {
Calendar cal = getPrimedCalendar();
String uuid = TestUtils.randomString("test-consumer-uuid");
ConsumerState state = new ConsumerState(uuid, "test-owner", cal.getTime());
consumerStateCurator.create(state);
cal.add(Calendar.DAY_OF_MONTH, 1);
List<String> uuids = consumerStateCurator.getConsumerUuidsOnDate(cal.getTime(), null, null);
assertEquals(1, uuids.size());
assertTrue(uuids.contains(state.getUuid()));
}