@Test
public void messageArrivedShouldLogIfTcpChatPortCouldNotBeParsed() {

    messageParser.messageArrived("10066122!CLIENT#Christian:(KouChat v1.4.0 Swing)[1753]{Linux}<40656>/b40657\\",
                                 "192.168.1.1");
    final ArgumentCaptor<Exception> exceptionCaptor = ArgumentCaptor.forClass(Exception.class);
    verify(log).log(eq(Level.WARNING),
                    eq("Failed to parse tcp chat port. " +
                               "message=10066122!CLIENT#Christian:(KouChat v1.4.0 Swing)[1753]{Linux}<40656>/b40657\\, " +
                               "ipAddress=192.168.1.1"),
                    exceptionCaptor.capture());
    checkException(exceptionCaptor, NumberFormatException.class, "For input string: \"b40657\"");
}