@Test
public void testCurve() throws InterruptedException {
// Events to generate
int nbEvent = 100;
EventPublisher pub = new EventPublisher();
for (int i = 0; i < nbEvent; i++) {
pub.publish(new Event("aer", EventType.HIT_FLIPPED));
Thread.sleep(2);
}
Assert.assertEquals(nbEvent, pub.getRepository().getTotalEventCount());
long now = System.currentTimeMillis();
pub.getRepository().getFeatureHitsCurve("aer", now - 3 * nbEvent, now, 10);
}