@Test
public void testSink() throws RecognitionException, FlumeSpecException {

  String orig = "null";
  CommonTree tree = FlumeBuilder.parseSink(orig);
  String out = FlumeSpecGen.genEventSink(tree);
  assertEquals(orig, out);
  orig = "thriftSink( 1234 )";
  tree = FlumeBuilder.parseSink(orig);
  out = FlumeSpecGen.genEventSink(tree);
  assertEquals(orig, out);
  orig = "text( \"/tmp/file\" )";
  tree = FlumeBuilder.parseSink(orig);
  out = FlumeSpecGen.genEventSink(tree);
  assertEquals(orig, out);
}