@Test
  public void excessiveLimitParam() {
    final HttpServletRequest request = new MockRequestBuilder().setLimit(10_001).build();
    final MetaBrowser metaBrowser = new MetaBrowser(connection, request);
    assertEquals(MetaBrowser.SCAN_LIMIT_MAX, metaBrowser.getScanLimit().intValue());
    assertThat(metaBrowser.getErrorMessages(),
      contains("Requested SCAN_LIMIT value 10001 exceeds maximum value 10000."));
  }
Cluster-backed correctness tests for the functionality provided by {@link MetaBrowser}.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/http/TestMetaBrowserNoCluster.java