// Mock up message context
MessageImpl msg = new MessageImpl();
WrappedMessageContext msgCtx = new WrappedMessageContext(msg);
msgCtx.put("url", "https");
WebServiceContextImpl webServiceContext = new WebServiceContextImpl(msgCtx);
// run the test
RequestSecurityTokenResponseType response =
validateOperation.validate(request, webServiceContext);
assertTrue(validateResponse(response));