Thread.sleep(600);
calc0.eventStarted();
Thread.sleep(100);
calc0.eventEnded();
Thread.sleep(400);
calc0.eventStarted();
Thread.sleep(200);
calc0.eventEnded();
long end = System.nanoTime();
assertEquals(1600D, (end - start) / 1e6, 10D);
assertEquals(200D, calc0.getMean(), 10D);