public Boolean answer(InvocationOnMock invocation) throws Throwable {
VisualItem visualItem = (VisualItem) invocation.getArguments()[0];
ResourceSet set = visualItem.getResources();
return set.size() == resources.size()
&& set.containsAll(resources);
};
});
return resolver;
}