@Test
public void testInputCmdLine() throws Exception {

  Runnable p1 = () -> {
    try {
      InputSumExample.main(
          new String[]{"-i", "1", "-p", "1:localhost:8081", "-p", "2:localhost:8082", "-s",
              "dummyArithmetic"});
    } catch (IOException e) {
      System.exit(-1);
    }
  };
  Runnable p2 = () -> {
    try {
      InputSumExample.main(
          new String[]{"-i", "2", "-p", "1:localhost:8081", "-p", "2:localhost:8082", "-s",
              "dummyArithmetic"});
    } catch (IOException e) {
      System.exit(-1);
    }
  };
  Thread t1 = new Thread(p1);
  Thread t2 = new Thread(p2);
  t1.start();
  t2.start();
  t1.join();
  t2.join();
}