ScheduledExecutorService mockService = mock(ScheduledExecutorService.class);
em.initialize(mockService, "", cfg, null, null, null);
ScheduledFuture mockFuture = mock(ScheduledFuture.class);
when(mockService.scheduleWithFixedDelay(isA(EvictionManagerImpl.ScheduledTask.class), eq(789l),
eq(789l), eq(TimeUnit.MILLISECONDS)))
.thenReturn(mockFuture);
em.start();
assert em.evictionTask == mockFuture;