MessageController { public void shutdown() { cLog.close(); } MessageController(final ChatWindow chat, final UserInterface ui, final Settings settings,
                             final ErrorHandler errorHandler); void showUserMessage(final String user, final String message, final int color); void showSystemMessage(final String message); void showOwnMessage(final String message); void showPrivateUserMessage(final User user, final String privmsg, final int color); void showPrivateOwnMessage(final User user, final String privmsg); void showPrivateSystemMessage(final User user, final String privmsg); void shutdown();  }
@Test public void shutdownShouldCloseTheChatLogger() { messageController.shutdown(); verify(chatLogger).close(); }