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