Assert.assertEquals(3, ccContent.getChildCount());
//Assert.assertEquals("Dynamically added header",
// ccContent.getChildren().get(0).getFacet("header").getAttributes().get("value"));
Assert.assertEquals("Dynamically added child", ccContent.getChildren().get(2).getAttributes().get("value"));
MockPrintWriter writer1 = (MockPrintWriter) response.getWriter();
String content1 = new String(writer1.content());
Assert.assertTrue(content1.contains("Dynamically added markup"));
int indexDynHeader1_1 = content1.indexOf("Start Dynamic Header");
int indexDynHeader1_2 = content1.indexOf("Dynamically added header", indexDynHeader1_1);
int indexDynHeader1_3 = content1.indexOf("End Dynamic Header", indexDynHeader1_2);
Assert.assertNotSame(-1, indexDynHeader1_1);