@Test
public void sendMessageToUserShouldNotSendMessageWhenPrivateChatDisabled() {

    when(settings.isNoPrivateChat()).thenReturn(true);
    final User user = new User("User", 111);
    final NetworkService networkService = new NetworkService(controller, settings, errorHandler);
    final boolean messageSent = networkService.sendMessageToUser("Nothing", user);
    assertFalse(messageSent);
}