public static void main(String[] args) {
    CommandLine cmdLine = new CommandLine();
    Config config = cmdLine.loadConfig(cmdLine.parser().parse(args));
    ApplicationRunner runner = ApplicationRunners.getApplicationRunner(new TaskApplicationExample(), config);
    runner.run();
    runner.waitForFinish();
  }
Test example of a low-level API application (i.e. {@link TaskApplication})
samza-test/src/main/java/org/apache/samza/example/TaskApplicationExample.java