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

  String orig = "< counter( \"foo\" ) ? counter( \"bar\" ) >";
  CommonTree tree = FlumeBuilder.parseSink(orig);
  String out = FlumeSpecGen.genEventSink(tree);
  assertEquals(orig, out);
}