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

  String orig = "{ flakey( .90 ) => null }";
  CommonTree tree = FlumeBuilder.parseSink(orig);
  String out = FlumeSpecGen.genEventSink(tree);
  assertEquals(orig, out);
  orig = "{ intervalSampler( 20 ) => thriftSink( 1234 ) }";
  tree = FlumeBuilder.parseSink(orig);
  out = FlumeSpecGen.genEventSink(tree);
  assertEquals(orig, out);
  orig = "{ stubbornAppend => { flakey( .90 ) => text( \"/tmp/file\" ) } }";
  tree = FlumeBuilder.parseSink(orig);
  out = FlumeSpecGen.genEventSink(tree);
  assertEquals(orig, out);
}