}
protected ClusterCacheNotifier waitUntilClosingSegment(final Cache<?, ?> cache, final int segment, final CheckPoint checkPoint) {
ClusterCacheNotifier realNotifier = TestingUtil.extractComponent(cache, ClusterCacheNotifier.class);
ConcurrentMap<UUID, QueueingSegmentListener> listeningMap = new ConcurrentHashMap() {
@Override
public Object putIfAbsent(Object key, Object value) {
final Answer<Object> listenerAnswer = AdditionalAnswers.delegatesTo(value);