public void testActivateAccountAgain() throws Exception {
JCUser user = new JCUser("username", "password", null);
user.setEnabled(true);
when(userService.getByUuid(USER_NAME)).thenReturn(user);
doThrow(new UserTriesActivatingAccountAgainException()).when(userService).activateAccount(anyString());
String viewName = userController.activateAccount(USER_NAME, request, response);
assertEquals("redirect:/", viewName);
}