@Test
  public void readsIntFromFile() throws Exception {
    // arrange
    String value = "42";
    FileUtils.writeStringToFile(pidFile, value, Charset.defaultCharset());

    // act
    int readValue = new PidFile(pidFile).readPid();

    // assert
    assertThat(readValue).isEqualTo(Integer.parseInt(value));
  }
Functional integration tests for {@link PidFile}.

@since GemFire 8.2
geode-core/src/integrationTest/java/org/apache/geode/internal/process/PidFileIntegrationTest.java