@Test
  @Retry(3)
  public void overwritesPidFileIfOtherPidIsNotAlive() throws Exception {
    // arrange
    FileUtils.writeStringToFile(pidFile, String.valueOf(fakePid), Charset.defaultCharset());

    // act
    new LocalProcessLauncher(pidFile, false);

    // assert
    assertThat(pidFile).exists().hasContent(String.valueOf(actualPid));
  }
Functional integration tests for {@link LocalProcessLauncher}.

<p>
Tests involving fakePid use {@link RetryRule} because the fakePid may become used by a real
process before the test executes.
geode-core/src/integrationTest/java/org/apache/geode/internal/process/LocalProcessLauncherIntegrationTest.java