}
});
when(regionFactory.addCacheListener(any(CacheListener.class))).thenAnswer(new Answer<RegionFactory>(){
@Override public RegionFactory answer(InvocationOnMock invocation) throws Throwable {
CacheListener cacheListener = (CacheListener) invocation.getArguments()[0];
attributesFactory.addCacheListener(cacheListener);
return regionFactory;
}
});