request.setMethod("POST");
request.setContext(this.spContext);
MockCatalinaResponse catalinaResponse = new MockCatalinaResponse();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
catalinaResponse.setOutputStream(baos);
LoginConfig loginConfig = new LoginConfig();
spAuthenticator.authenticate(request, catalinaResponse, loginConfig);