ClientCacheEntryModifiedEvent modifiedEvent = eventListener.pollEvent(type);
assertEquals(key, modifiedEvent.getKey());
assertEquals(serverDataVersion(cache, key), modifiedEvent.getVersion());
break;
case CLIENT_CACHE_ENTRY_REMOVED:
ClientCacheEntryRemovedEvent removedEvent = eventListener.pollEvent(type);
assertEquals(key, removedEvent.getKey());
break;
}
assertEquals(0, eventListener.queue(type).size());
}