* are redirects rather than renders.
*/
@Test(enabled = true)
public void testShortCircuitOnNonNullOutcomeWithRedirect()
{
FacesContext facesContext = FacesContext.getCurrentInstance();
TestActions testActions = TestActions.instance();
facesContext.getViewRoot().setViewId("/action-test05.xhtml");
Pages.instance().preRender(facesContext);
assertViewId(facesContext, "/action-test05.xhtml");
assertActionCalls(testActions, new String[] { "nonNullActionA" });
assert Contexts.getEventContext().get("lastRedirectViewId").equals("/pageA.xhtml") :
"Expecting a redirect to /pageA.xhtml but redirected to " + Contexts.getEventContext().get("lastRedirectViewId");
assert facesContext.getResponseComplete() == true : "The response should have been marked as complete";
}