public CloseableIterator<CacheEntry<String, String>> answer(InvocationOnMock invocationOnMock) throws Throwable {
return new IteratorAsCloseableIterator<>(initialValues.iterator());
}
});
KeyValueFilter filter = mock(KeyValueFilter.class, withSettings().serializable());
Converter converter = mock(Converter.class, withSettings().serializable());
n.addListener(listener, filter, converter);
verifyEvents(isClustered(listener), listener, initialValues);
verify(filter, never()).accept(anyObject(), anyObject(), any(Metadata.class));