@Override
  public Optional<RegionObserver> getRegionObserver() {
    return Optional.of(this);
  }
Simple test coprocessor for injecting exceptions on Get requests.
hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/ErrorThrowingGetObserver.java