@Test
public void messageArrivedShouldLogIfTimeSinceLogonCouldNotBeParsed() {

    messageParser.messageArrived("16320462!CLIENT#Christian:(KouChat v1.3.0 Swing)[a2688]{Linux}<40657>",
                                 "192.168.1.1");
    final ArgumentCaptor<Exception> exceptionCaptor = ArgumentCaptor.forClass(Exception.class);
    verify(log).log(eq(Level.SEVERE),
                    eq("Failed to parse message. " +
                               "message=16320462!CLIENT#Christian:(KouChat v1.3.0 Swing)[a2688]{Linux}<40657>, " +
                               "ipAddress=192.168.1.1"),
                    exceptionCaptor.capture());
    checkException(exceptionCaptor, NumberFormatException.class, "For input string: \"a2688\"");
}