@Test
public void testDoWorkOnClear() throws Exception {
CacheStore cs = mock(CacheStore.class);
Clear clear = mock(Clear.class);
when(clear.getType()).thenReturn(Modification.Type.CLEAR);
cs.clear();
ModificationsTransactionWorker worker =
new ModificationsTransactionWorker(cs,
Collections.singletonList(clear));
worker.doWork();