@Test
  public void processTerminatesWhenDestroyed() throws Exception {
    // arrange
    givenRunningProcessWithStreamReaders(ProcessSleeps.class);

    // act
    process.destroyForcibly(); // results in SIGTERM which usually has an exit code of 143

    // assert
    waitUntilProcessStops(10, MINUTES);
    assertThatProcessAndReadersDied();
  }
Integration tests that should be executed under both {@link ProcessStreamReader.ReadingMode}s.
geode-core/src/integrationTest/java/org/apache/geode/internal/process/BaseProcessStreamReaderIntegrationTest.java