@Test
  public void buildFirstPageQueryStringNonNullParams() {
    final HttpServletRequest request = new MockRequestBuilder().setLimit(50)
      .setRegionState(RegionState.State.ABNORMALLY_CLOSED).setTable("foo%3Abar").build();
    final MetaBrowser metaBrowser = new MetaBrowser(connection, request);

    assertEquals(50, metaBrowser.getScanLimit().intValue());
    assertEquals(RegionState.State.ABNORMALLY_CLOSED, metaBrowser.getScanRegionState());
    assertEquals(TableName.valueOf("foo", "bar"), metaBrowser.getScanTable());
    assertEquals("/table.jsp?name=hbase%3Ameta" + "&scan_limit=50"
      + "&scan_region_state=ABNORMALLY_CLOSED" + "&scan_table=foo%3Abar",
      metaBrowser.buildNextPageUrl(null));
  }
Cluster-backed correctness tests for the functionality provided by {@link MetaBrowser}.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/http/TestMetaBrowserNoCluster.java