replay();
forceCacheClear();
Messages messages = _source.getMessages(model, Locale.ENGLISH);
assertEquals(messages.get("color"), "color");
assertEquals(messages.get("framework"), "Tapestry");
assertEquals(messages.get("source"), "SubclassComponent");
assertEquals(messages.get("metal"), "steel");
assertEquals(messages.get("app-catalog-source"), "AppCatalog");
assertEquals(messages.get("app-catalog-overridden"), "Overridden by Component");
messages = _source.getMessages(model, Locale.UK);
assertEquals(messages.get("color"), "colour");
assertEquals(messages.get("framework"), "Tapestry");
assertEquals(messages.get("source"), "SubclassComponent");
assertEquals(messages.get("metal"), "aluminium");
verify();
}