public void testLocalizedResolveInheritances() {
Map defs = new HashMap();
ComponentDefinition def = new ComponentDefinition();
def.setName("parent.def1");
def.setTemplate("/test1.jsp");
ComponentAttribute attr = new ComponentAttribute();
attr.setName("attr1");
attr.setValue("value1");
def.addAttribute(attr);
defs.put(def.getName(), def);
def = new ComponentDefinition();
def.setName("child.def1");
def.setExtends("parent.def1");
attr = new ComponentAttribute();
attr.setName("attr1");
attr.setValue("New value");
def.addAttribute(attr);
defs.put(def.getName(), def);
Map localDefs = new HashMap();
def = new ComponentDefinition();
def.setName("child.def1");
def.setExtends("parent.def1");
attr = new ComponentAttribute();
attr.setName("attr1");
attr.setValue("US Value");
def.addAttribute(attr);
localDefs.put(def.getName(), def);
ComponentDefinitions definitions = new ComponentDefinitionsImpl();
try {