.format(attributeTag, "'attMainToParentContainer'", "'String'", "'defaultattribute1to2'");
String att1to3 = String.format(attributeTag, "'attMainToParent'", "'String'", "'defaultattribute1to3'");
DefDescriptor<ComponentDef> defDes1 = getDefDescriptor(componentTagWithModelAndAttr, model,
"'defaultattributeinParent1'", att1to2 + att1to3, cmpString2);
Component mainCMP = Aura.getInstanceService().getInstance(defDes1, attributes);
String result = "<br/>ParentCMP<br/>m.valueParent=defaultattributeinParent1" +
"<br/>ParentCMP<br/>m.valueParent=defaultattribute1to2" +
"<br/>ParentCMP<br/>m.valueParent=defaultattribute1to3";
if (testModelWithCount) {
assertEquals(3, TestReinitializeModelWithCount.getCount());
TestReinitializeModelWithCount.clearCount();
} else {
assertEquals(result, getRenderedBaseComponent(mainCMP).replaceAll("\\s+", ""));
}
attributes.clear();
attributes.put("attrInParent", "new attributeinParent1");
attributes.put("attMainToParentContainer", "new attribute1to2");
attributes.put("attMainToParent", "new attribute1to3");
mainCMP.getAttributes().set(attributes);
mainCMP.reinitializeModel();
if (testModelWithCount) {
assertEquals(3, TestReinitializeModelWithCount.getCount());
TestReinitializeModelWithCount.clearCount();
} else {
assertEquals(result.replaceAll("default", "new"), getRenderedBaseComponent(mainCMP).replaceAll("\\s+", ""));