* Tests {@link ChainedTilesRequestContextFactory#setFactories(java.util.List)}.
*/
public void testSetFactories() {
ChainedTilesRequestContextFactory factory = new ChainedTilesRequestContextFactory();
List<TilesRequestContextFactory> factories = new ArrayList<TilesRequestContextFactory>();
RepeaterTilesRequestContextFactory repFactory = new RepeaterTilesRequestContextFactory();
repFactory.setRequestContextFactory(factory);
factories.add(repFactory);
factory.setFactories(factories);
TilesRequestContext context = factory.createRequestContext(appContext, requestContext);
assertNotNull("The request context is not correct",
context == requestContext);