@Test
  @Retry(3)
  public void existingPidFileThrowsFileAlreadyExistsException() throws Exception {
    // arrange
    System.setProperty(PROPERTY_IGNORE_IS_PID_ALIVE, "true");
    FileUtils.writeStringToFile(pidFile, String.valueOf(fakePid), Charset.defaultCharset());

    // act/assert
    assertThatThrownBy(() -> new LocalProcessLauncher(pidFile, false))
        .isInstanceOf(FileAlreadyExistsException.class);
  }
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