ReflectionTestUtils.setField(newAccountService, "saltSource", saltSource);
ReflectionTestUtils.setField(newAccountService, "passwordEncoder", passwordEncoder);
expect(userService.getUserByUsername(validUser)).andReturn(null);
PageLayout pageLayout = new PageLayout();
pageLayout.setNumberOfRegions(4L);
expect(pageLayoutService.getPageLayoutByCode(validLayout)).andReturn(pageLayout);
replay(userService, pageLayoutService);
newAccountService.createNewAccount(newUser);
}