@Test
public void nickShouldShowSystemMessageIfNickChangeFails() throws CommandException {

    doThrow(new CommandException("No!")).when(controller).changeMyNick(anyString());
    parser.parse("/nick NewNick");
    verify(messageController).showSystemMessage("No!");
    verify(controller).changeMyNick("NewNick");
}