/*
* Test method for 'org.ajax4jsf.renderkit.BeforeRenderListener.afterPhase(PhaseEvent)'
*/
public void testAfterPhase() throws Exception {
PhaseListener listener = new AjaxPhaseListener();
PhaseEvent event = new PhaseEvent(facesContext,PhaseId.RENDER_RESPONSE,lifecycle);
// UIComponent ajaxButton = createComponent("org.ajax4jsf.ajax.AjaxButton", "org.ajax4jsf.ajax.html.HtmlAjaxCommandButton", "org.ajax4jsf.ajax.AjaxButton", CommandButtonRenderer.class, null);
// facesContext.getViewRoot().getChildren().add(ajaxButton);
AjaxContext.getCurrentInstance(facesContext).setAjaxRequest(true);
// TODO Must be used different StateManager !