EvictionManagerImpl em = new EvictionManagerImpl();
Configuration cfg = getCfg().expiration().wakeUpInterval(0L).build();
ScheduledExecutorService mockService = mock(ScheduledExecutorService.class);
em.initialize(mockService, "", cfg, null, null, null, null);
em.start();
assert em.evictionTask == null : "Eviction task is not null! Should not have scheduled anything!";
}
public void testWakeupInterval() {