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