protected TestFile addProcess(String processName, Class<?> clazz, int debugPort, boolean suspend)
     throws UnknownHostException {
   master.addProcess(
       processName,
       TestProcessUtils.createCommand(
           processName, clazz.getName(), master.getPort(), debugPort, suspend),
       System.getenv(),
       ".");
   processes.add(processName);
   return TestFileUtils.getOutputFile(processName);
 }
  @Before
  public void beforeTest() throws IOException, UnknownHostException {
    testManager =
        TestProcessUtils.createStreamManager(
            new TestProcessController() {

              @Override
              public void stopProcess(String processName) {
                master.stopProcess(processName);
              }

              @Override
              public void startProcess(String processName) {
                master.startProcess(processName);
              }
            });

    master = new ProcessManagerMaster(InetAddress.getLocalHost(), 12967);
    master.start();
    TestFileUtils.cleanFiles();
  }