@Test
public void testNewExtractor() throws EventExtractException {

  String msg = "This is a test";
  String entry = "<13>" + msg + "\n";
  DataInputStream in = new DataInputStream(new ByteArrayInputStream(entry
      .getBytes()));
  Event e = SyslogWireExtractor.extractEvent(in);
  Assert.assertEquals(1, e.get(SyslogConsts.SYSLOG_FACILITY)[0]); // 1 is syslog
  Assert.assertEquals(5, e.get(SyslogConsts.SYSLOG_SEVERITY)[0]); // 5 is
  Assert.assertTrue(Arrays.equals(msg.getBytes(), e.getBody()));
}