public void setup() {
NewAccountService newAccountService = createNiceMock(NewAccountService.class);
userService = createNiceMock(UserService.class);
request = new MockHttpServletRequest();
redirectAttributes = createNiceMock(RedirectAttributes.class);
NewAccountValidator newAccountValidator = new NewAccountValidator(userService);
CaptchaService captchaService = new ReCaptchaService(false, null, null, false, "error message");
newAccountController = new NewAccountController(newAccountService, newAccountValidator, captchaService);
}