final String DIRECTLINK_FALSE_TEST_STRING =
"/test.jsp?firstParam=value&javax.portlet.faces.DirectLink=false&anotherParam=value";
FacesContext ctx = FacesContext.getCurrentInstance();
ExternalContext extCtx = ctx.getExternalContext();
if (!extCtx.encodeActionURL(DIRECTLINK_FALSE_TEST_STRING).contains("javax.portlet.faces.DirectLink"))
{
testRunner.setTestResult(true,
"encodeActionURL correctly returned an url string without the javax.portlet.faces.DirectLink parameter when its value was false.");
return Constants.TEST_SUCCESS;
}