class MatchingOutputStream extends OutputStream {

  public void expectEof() throws IOException {
    if (expectedBytesStream.read() != -1) {
      throw new MismatchException("EOF not reached in expectedBytesStream");
    }
  }

  public  MatchingOutputStream(InputStream expectedBytesStream, int matchBufferSize);

}