return mcl;
}
public static MockCatalinaRequest createRequest(String userAddress, boolean withUserPrincipal) {
MockCatalinaRequest request = new MockCatalinaRequest();
request = new MockCatalinaRequest();
request.setMethod("GET");
request.setRemoteAddr(userAddress);
request.setSession(new MockCatalinaSession());
request.setContext(new MockCatalinaContext());
if (withUserPrincipal) {
request.setUserPrincipal(createPrincipal());
}
return request;
}