@Override
  public void accept(String line) {
    allLines.add(line);
    lineBuffer.offer(line);

    if (consumer != null) {
      consumer.accept(line);
    }
  }
Wraps spawned {@link Process} to capture output and provide interaction with the process.

@since GemFire 4.1.1
geode-junit/src/main/java/org/apache/geode/test/process/ProcessWrapper.java