Testing code for portlet URL generation