final RemovalListenerMock listener3Mock =
new RemovalListenerMock("listener3Mock", expectations);
final RemovalListenerMock listener4Mock =
new RemovalListenerMock("listener4Mock", expectations);
ExpectCacheEntry removeGroup2Key1 = new ExpectCacheEntry(
"group2.key1", "value for (group2.key1)");
ExpectedValue expectsCacheEntry =
mockFactory.expectsInstanceOf(CacheEntry.class);
listener2Mock.fuzzy
.entryRemoved(expectsCacheEntry)
.does(removeGroup2Key1);
listenerRootMock.fuzzy
.entryRemoved(expectsCacheEntry)
.does(removeGroup2Key1);
ExpectCacheEntry removeGroup2Key3 = new ExpectCacheEntry(
"group2.key3", "value for (group2.key3)");
listener2Mock.fuzzy
.entryRemoved(expectsCacheEntry)
.does(removeGroup2Key3);
listenerRootMock.fuzzy
.entryRemoved(expectsCacheEntry)
.does(removeGroup2Key3);
ExpectCacheEntry removeGroup3Key1 = new ExpectCacheEntry(
"group3.key1", "value for (group3.key1)");
listener3Mock.fuzzy
.entryRemoved(expectsCacheEntry)
.does(removeGroup3Key1);
listenerRootMock.fuzzy