DefaultVisualizationModel visualizationModel = spy(new DefaultVisualizationModel(
viewContentDisplay, selectedResources, highlightedResources,
mock(VisualItemBehavior.class), new TestErrorHandler(),
new DefaultResourceSetFactory(),
new ResourceCategorizerToMultiCategorizerAdapter(
new ResourceByUriTypeCategorizer())));
visualizationModel.setContentResourceSet(containedResources);
return visualizationModel;
}