SecurityContextHolder.getContext().setAuthentication(null);
}
private User createUser() {
final User user = new User();
user.setUsername("self-registered");
user.setPassword("Password1");
user.setConfirmPassword("Password1");
user.setFirstName("First");
user.setLastName("Last");
final Address address = new Address();
address.setCity("Denver");
address.setProvince("CO");
address.setCountry("USA");
address.setPostalCode("80210");
user.setAddress(address);
user.setEmail("self-registered@raibledesigns.com");
user.setWebsite("http://raibledesigns.com");
user.setPasswordHint("Password is one with you.");
return user;
}