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

  ExecNioSource e = (ExecNioSource) ExecNioSource.builder().build("ps -aux",
      "true", "true", "1000");
  assertEquals(e.inAggregateMode, true);
  assertEquals(e.command, "ps -aux");
  assertEquals(e.restart, true);
  assertEquals(e.period, 1000);
}