@Test
public void messageArrivedShouldLogIfUnableToParseUserCodeInMessage() {

    messageParser.messageArrived("a16320462!LOGON#Christian:", "192.168.1.1");
    final ArgumentCaptor<Exception> exceptionCaptor = ArgumentCaptor.forClass(Exception.class);
    verify(log).log(eq(Level.SEVERE),
                    eq("Failed to parse message. message=a16320462!LOGON#Christian:, ipAddress=192.168.1.1"),
                    exceptionCaptor.capture());
    checkException(exceptionCaptor, NumberFormatException.class, "For input string: \"a16320462\"");
}