final ScheduledExecutorService executor = createMock(ScheduledExecutorService.class);
FakeScheduledExecutor executorClock =
FakeScheduledExecutor.scheduleAtFixedRateExecutor(executor, 2);
Clock mockClock = createMock(Clock.class);
expect(mockClock.nowMillis()).andReturn(2L).times(2);
expect(storageUtil.jobUpdateStore.pruneHistory(1, 1)).andReturn(ImmutableSet.of("id1", "id2"));
expect(storageUtil.jobUpdateStore.pruneHistory(1, 1)).andReturn(ImmutableSet.<String>of());
control.replay();