}
@Test
public void testBestEffortBuilder() throws FlumeSpecException {
String snk = " agentBestEffortSink";
FlumeBuilder.buildSink(new Context(), snk);
String snk2 = "agentBestEffortSink(\"localhost\")";
FlumeBuilder.buildSink(new Context(), snk2);
String snk3 = "agentBestEffortSink(\"localhost\", 12345)";
FlumeBuilder.buildSink(new Context(), snk3);
try {
String snk4 = "agentBestEffortSink(\"localhost\", 12345, \"fail\")";
FlumeBuilder.buildSink(new Context(), snk4);
} catch (Exception e) {
return;
}
Assert.fail("unexpected fall through");
}