factory.init(Collections.EMPTY_MAP);
factory.addSource(url1);
// Parse files.
ComponentDefinitions definitions = factory.readDefinitions();
TilesRequestContext tilesContext =
new MockOnlyLocaleTilesContext(Locale.US);
assertFalse("Locale should not be processed.",
factory.isContextProcessed(tilesContext));
factory.addDefinitions(definitions, tilesContext);