private void execute(final String command) throws IOException, InterruptedException {
    process = new ProcessBuilder(command)
        .directory(userDir)
        .redirectErrorStream(true)
        .start();

    processReader = new ProcessStreamReader.Builder(process)
        .inputStream(process.getInputStream())
        .inputListener(line -> logger.info("OUTPUT: {}", line))
        .readingMode(getReadingMode())
        .continueReadingMillis(2 * 1000)
        .build()
        .start();

    assertThat(process.waitFor(TIMEOUT_MILLIS, MILLISECONDS)).isTrue();
    assertThat(process.exitValue()).isEqualTo(0);
  }
Verifies that a user deployed jar file is included as part of the backup.
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/backup/IncrementalBackupIntegrationTest.java