@Override
    public Optional<MasterObserver> getMasterObserver() {
      return Optional.of(this);
    }
Test that use this should have a timeout, because this method could potentially wait forever.
hbase-server/src/test/java/org/apache/hadoop/hbase/util/BaseTestHBaseFsck.java