@Test
public void testHandle() {

	AuthenticationSuccessEvent loginSuccessEvent=mock(AuthenticationSuccessEvent.class);
	Authentication authentication=mock(Authentication.class);
	Users user=mock(Users.class);
	when(loginSuccessEvent.getAuthentication()).thenReturn(authentication);
	when(authentication.getPrincipal()).thenReturn(user);
	loginSuccessEventListener.handle(loginSuccessEvent);
	verify(user).setFailedLoginAttemptsToZero();
	verify(usersRepository).updateUser(user);
}