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

    // act
    process.getErrorStream().close();
    process.getOutputStream().close();
    process.getInputStream().close();

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