IEvent deserialize = deserializer.deserialize();
Assert.assertTrue(deserialize instanceof AppendStdErrEvent);
AppendStdErrEvent e = ((AppendStdErrEvent) deserialize);
baos.reset();
e.copyTo(baos);
Assert.assertTrue(
"Exp: " + Arrays.toString(bytes) + "\n" +
"was: " + Arrays.toString(baos.toByteArray()),
Arrays.equals(bytes, baos.toByteArray()));
}