@Test
  public void unparseableLimitParam() {
    final HttpServletRequest request = new MockRequestBuilder().setLimit("foo").build();
    final MetaBrowser metaBrowser = new MetaBrowser(connection, request);
    assertNull(metaBrowser.getScanLimit());
    assertThat(metaBrowser.getErrorMessages(),
      contains("Requested SCAN_LIMIT value 'foo' cannot be parsed as an integer."));
  }
Cluster-backed correctness tests for the functionality provided by {@link MetaBrowser}.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/http/TestMetaBrowserNoCluster.java