}
@Test
public void testDoWorkOnPurgeExpired() throws Exception {
CacheStore cs = mock(CacheStore.class);
PurgeExpired purge = mock(PurgeExpired.class);
when(purge.getType()).thenReturn(Modification.Type.PURGE_EXPIRED);
cs.purgeExpired();
ModificationsTransactionWorker worker =
new ModificationsTransactionWorker(cs,
Collections.singletonList(purge));