@Test
  public void forceReplacesExistingPidFile() throws Exception {
    // arrange
    otherVM.invoke(this::createPidFile);
    int firstPid = new IntegerFileReader(pidFile).readFromFile();

    // act
    new LocalProcessLauncher(pidFile, true);

    // assert
    int secondPid = new IntegerFileReader(pidFile).readFromFile();
    assertThat(secondPid).isNotEqualTo(firstPid).isEqualTo(pid);
  }
Two-process functional tests for {@link LocalProcessLauncher}.

@since GemFire 7.0
geode-core/src/distributedTest/java/org/apache/geode/internal/process/LocalProcessLauncherDistributedTest.java