facesContext.getExternalContext().getRequestMap().put("title", title);
UIViewRoot root = facesContext.getViewRoot();
vdl.buildView(facesContext, root, "attribute.xml");
HtmlGraphicImage graphic1 = (HtmlGraphicImage) root
.findComponent("graphic1");
HtmlGraphicImage graphic2 = (HtmlGraphicImage) root
.findComponent("graphic2");
Assert.assertNotNull("graphic1", graphic1);
Assert.assertNotNull("graphic2", graphic2);
Assert.assertEquals("graphic1 title", "literal", graphic1.getTitle());
Assert.assertEquals("graphic2 title", title, graphic2.getTitle());
}