.register(new FirstResourcePropertyResolverFactory(
resolverId1, DataType.NUMBER));
/* define initialization mapping */
final Map<Slot, VisualItemValueResolver> initialSlotMapping = new HashMap<Slot, VisualItemValueResolver>();
VisualItemValueResolver resolver = new ManagedVisualItemValueResolverDecorator(
resolverId1, new FirstResourcePropertyResolver(property1,
DataType.NUMBER));
initialSlotMapping.put(requiredSlots[0], resolver);
slotMappingInitializer = new TestSlotMappingInitializer(
initialSlotMapping);
DefaultVisualizationModel model = createViewModel(new ResourceByUriMultiCategorizer());
Resource resource = createResource(1);
resource.putValue(property1, 1);
resource.putValue(property2, 2);
model.getContentResourceSet().add(resource);
VisualItemValueResolver resolver2 = new ManagedVisualItemValueResolverDecorator(
resolverId1, new FirstResourcePropertyResolver(property2,
DataType.NUMBER));
model.setResolver(requiredSlots[0], resolver2);
LightweightCollection<VisualItem> visualItems = model