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+", ""));