@Before
  public void before() throws Exception {
    File directory = temporaryFolder.getRoot();

    List<String> command = new ArrayList<>();
    command
        .add(new File(new File(System.getProperty("java.home"), "bin"), "java").getCanonicalPath());
    command.add("-cp");
    command.add(System.getProperty("java.class.path"));
    command.add(ProcessSleeps.class.getName());

    process = new ProcessBuilder(command).directory(directory).start();
    assertThat(process.isAlive()).isTrue();

    pidFile = new File(directory, FILE_NAME);
    await().untilAsserted(() -> assertThat(pidFile).exists());

    pid = new PidFile(pidFile).readPid();
    assertThat(pid).isGreaterThan(0);

    nativeProcessUtils = new NativeProcessUtils();
  }
Max sleep timeout for {@link ProcessSleeps}
geode-core/src/integrationTest/java/org/apache/geode/internal/process/NativeProcessUtilsIntegrationTest.java