// start senders
RawSocketSender sender = new RawSocketSender("localhost", port);
Map<String, Object> data = new HashMap<String, Object>();
data.put("t1k1", "t1v1");
data.put("t1k2", "t1v2");
sender.emit("tag.label1", timestamp, data);
packer.write(new Event("tag.label1", timestamp, data));
byte[] bytes1 = packer.toByteArray();
assertArrayEquals(bytes1, sender.getBuffer());