Assert.assertTrue(authenticator.canProcess(getRequest("amilaj:secret")));
}
private MyHttpServletRequest getRequest(String userPassword) {
MyHttpServletRequest myHttpServletRequest = new MyHttpServletRequest();
String authHeader = "Basic " + new String(Base64.encodeBase64(userPassword.getBytes()));
myHttpServletRequest.addHeader("Authorization", authHeader);
myHttpServletRequest.addHeader(Constants.GATEWAY_NAME, "default");
return myHttpServletRequest;
}