public MockHttpApiRule addRegistration(final String pathRegex,
    final BiConsumer<String, HttpServletResponse> responder) {
    handler.register(pathRegex, responder);
    return this;
  }
Register a callback handler for the specified path target.
hbase-it/src/test/java/org/apache/hadoop/hbase/MockHttpApiRule.java