public void testHeaders() throws InterruptedException, IOException {
bind();
Map flumeHeaders = new HashMap<CharSequence, ByteBuffer>();
flumeHeaders.put("hello", ByteBuffer.wrap("world".getBytes("UTF-8")));
ThriftFlumeEvent thriftEvent = new ThriftFlumeEvent(
1, Priority.INFO, ByteBuffer.wrap("foo".getBytes()),
0, "fooHost", flumeHeaders);
FlumeClient fClient = new FlumeClient("0.0.0.0", selectedPort);
fClient.append(thriftEvent);