boolean checkAfter) throws Throwable
{
expect(_lifecycleFactory.getLifecycle(eq(LifecycleFactory.DEFAULT_LIFECYCLE))).andReturn(_lifecycle);
expect(_externalContext.getInitParameter(eq(FacesServlet.LIFECYCLE_ID_ATTR))).andReturn(null).anyTimes();
PhaseEvent event = new PhaseEvent(_facesContext, phaseId, _lifecycle);
if (expectSuperCall)
_testimpl = _mocksControl.createMock(UIViewRoot.class, new Method[] { UIViewRoot.class.getMethod(
"isRendered", new Class[0]) });