_casClientUtils = new CasClientUtils();
}
public void test () {
RequestContext reqCtx = this.getRequestContext();
PageURL pageUrl = new PageURL(_urlManager, reqCtx);
pageUrl.addParam("param1", "value1");
pageUrl.addParam("param2", "value2");
pageUrl.addParam("ticket", "ticket_value");
pageUrl.addParam("param3", "value3");
String url = pageUrl.getURL();
assertTrue(url.contains("ticket"));
String urlWithoutParam = _casClientUtils.getURLStringWithoutTicketParam(pageUrl, reqCtx);
assertNotNull(urlWithoutParam);
assertFalse(urlWithoutParam.contains("ticket"));