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

    // act/assert
    assertThatThrownBy(() -> new LocalProcessLauncher(pidFile, false))
        .isInstanceOf(FileAlreadyExistsException.class);
    assertThat(new IntegerFileReader(pidFile).readFromFile()).isEqualTo(firstPid);
  }
Two-process functional tests for {@link LocalProcessLauncher}.

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