expectedCallerRoles.add("allAuthCaller");
expectedCallerRoles.add("webUser");
HashSet expectedRunAsRoles = new HashSet();
expectedRunAsRoles.add("identitySubstitutionCaller");
expectedRunAsRoles.add("extraRunAsRole");
CallerInfo info = new CallerInfo(callerIdentity, runAsIdentity,
expectedCallerRoles, expectedRunAsRoles);
String baseURL = HttpUtils.getBaseURL("jduke", "theduke");
PostMethod formPost = new PostMethod(baseURL+"subject-context/restricted/RunAsServlet");
formPost.setDoAuthentication(true);