//@Test(expectedExceptions = UsernameExistsException.class) <-- not working
public void testDuplicateUsernameRegistration() {
registerUsers();
try {
securityTxnService.registerUser(
new RegistrationRequest("Jim", "Horner", "jhorner", "school"));
}
catch (UsernameExistsException e) {
// This is an acceptable exception - eat it
}
}