public void testOnLoginSuccessRepositoryException()
{
final UserDetails userDetails = context.mock(UserDetails.class);
final PersistentLoginRepository loginRepo = context
.mock(PersistentLoginRepository.class);
final UserDetailsService userDetailsService = context
.mock(UserDetailsService.class);
final HttpServletRequest request = context
.mock(HttpServletRequest.class);
final HttpServletResponse response = context
.mock(HttpServletResponse.class);