@Test
public void testDecoratedBad2() throws IOException, FlumeSpecException {

  try {
    String decorated = "{ intervalSampler(5) =>  unpossible }";
    FlumeBuilder.buildSink(new Context(), decorated);
  } catch (FlumeSpecException e) {
    System.out.println(e);
    return;
  }
  fail("should have thrown exception");
}