@Test
public void logOffShouldClosePrivateChatLoggersWhenRemoveUsersIsFalse() {

    final User user1 = new User("User1", 124);
    final ChatLogger chatLogger1 = mock(ChatLogger.class);
    user1.setPrivateChatLogger(chatLogger1);
    final User user2 = new User("User2", 125);
    final ChatLogger chatLogger2 = mock(ChatLogger.class);
    user2.setPrivateChatLogger(chatLogger2);
    userList.add(user1);
    userList.add(user2);
    controller.logOff(false);
    verify(chatLogger1).close();
    verify(chatLogger2).close();
}