public static DefaultProcessCommands main(File directory, int processNumber) {
    return new DefaultProcessCommands(directory, processNumber, true);
  }
@Test
  public void fail_to_init_if_dir_does_not_exist() throws Exception {
    File dir = temp.newFolder();
    FileUtils.deleteQuietly(dir);

    try {
      DefaultProcessCommands.main(dir, PROCESS_NUMBER);
      fail();
    } catch (IllegalArgumentException e) {
      assertThat(e).hasMessage("Not a valid directory: " + dir.getAbsolutePath());
    }
  }