@Deployment
 public static PortletArchive createDeployment() {
   TestDeployment deployment = new TestDeployment(AjaxSubmitTest.class, true);
   deployment
       .archive()
       .createFacesPortlet("AjaxSubmit", "Ajax Submit Portlet", "ajax.xhtml")
       .addAsWebResource("pages/basic/ajax.xhtml", "ajax.xhtml")
       .addClass(Bean.class);
   deployment
       .webXml()
       .createContextParam()
       .paramName(PortletBridgeConstants.SCOPE_ENABLED_ON_AJAX)
       .paramValue("true");
   return deployment.getFinalArchive();
 }
  @Deployment
  public static PortletArchive createDeployment() {
    TestDeployment deployment = new TestDeployment(FaceletCompositionCustomTagTest.class, true);

    WebAppDescriptor webConfig = deployment.webXml();
    webConfig
        .createContextParam()
        .paramName("facelets.LIBRARIES")
        .paramValue("/WEB-INF/pbr.taglib.xml");

    deployment
        .archive()
        .createFacesPortlet(
            "FaceletCompositionCustomTag", "Facelet Composition Portlet", "main.xhtml")
        .addAsWebResource("pages/facelet/customTag/main.xhtml", "main.xhtml")
        .addAsWebResource("pages/facelet/customTag/button.xhtml", "button.xhtml")
        .addAsWebInfResource("pages/facelet/customTag/pbr.taglib.xml", "pbr.taglib.xml");
    return deployment.getFinalArchive();
  }