public void testCreateRendererFactory() {
TilesContainer container = factory.createContainer(applicationContext);
LocaleResolver resolver = factory.createLocaleResolver(applicationContext);
AttributeEvaluatorFactory attributeEvaluatorFactory = factory.createAttributeEvaluatorFactory(
applicationContext, resolver);
RendererFactory rendererFactory = factory.createRendererFactory(applicationContext, container,
attributeEvaluatorFactory);
assertTrue("The class of the renderer factory is not correct", rendererFactory instanceof BasicRendererFactory);
Renderer renderer = rendererFactory.getRenderer("string");
assertNotNull("The string renderer is null", renderer);
assertTrue("The string renderer class is not correct", renderer instanceof StringRenderer);
renderer = rendererFactory.getRenderer("template");
assertNotNull("The template renderer is null", renderer);
assertTrue("The template renderer class is not correct", renderer instanceof DispatchRenderer);
renderer = rendererFactory.getRenderer("definition");
assertNotNull("The definition renderer is null", renderer);
assertTrue("The definition renderer class is not correct", renderer instanceof DefinitionRenderer);
}