public static void main(String[] args) {
    CommandLine cmdLine = new CommandLine();
    Config config = cmdLine.loadConfig(cmdLine.parser().parse(args));
    ApplicationRunner runner = ApplicationRunners.getApplicationRunner(new RepartitionExample(), config);

    runner.run();
    runner.waitForFinish();
  }
Example {@link StreamApplication} code to test the API methods with re-partition operator
samza-test/src/main/java/org/apache/samza/example/RepartitionExample.java