Assert.assertNull(evt.getHeaders().get(SyslogUtils.EVENT_STATUS));
// valid ISO-8859-1 on the wrong (UTF-8) port
msg = header + dangerousChars + "\n";
buf = IoBuffer.wrap(msg.getBytes(Charsets.ISO_8859_1));
handler.messageReceived(session2, buf);
evt = takeEvent(chan);
Assert.assertNotNull("Event vanished!", evt);
Assert.assertEquals("Expected invalid event due to character encoding",
SyslogUtils.SyslogStatus.INVALID.getSyslogStatus(),
evt.getHeaders().get(SyslogUtils.EVENT_STATUS));