@Test
public void logoutShouldDestroyTheSession(UserSessionDao userSessionDao) {

    // Given
    UserDto userDto = mock(UserDto.class);
    given(userDto.getId()).willReturn(0L);
    CurrentUserDto currentUserDto = mock(CurrentUserDto.class);
    given(currentUserDto.getUser()).willReturn(userDto);
    given(currentUserDtoProvider.get()).willReturn(currentUserDto);
    // When
    authenticator.logout();
    // Then
    verify(httpSession).invalidate();
}