@Test
  public void testSimpleFilterBase64() throws IOException, JAXBException {
    StringBuilder builder = new StringBuilder();
    builder.append("/*");
    builder.append("?");
    builder.append(Constants.SCAN_COLUMN + "=" + COLUMN_1);
    builder.append("&");
    builder.append(Constants.SCAN_START_ROW + "=aaa");
    builder.append("&");
    builder.append(Constants.SCAN_END_ROW + "=aay");
    builder.append("&");
    builder.append(Constants.FILTER_B64 + "=" + base64UrlEncoder
      .encodeToString("PrefixFilter('aab')".getBytes(StandardCharsets.UTF_8.toString())));
    Response response = client.get("/" + TABLE + builder.toString(), Constants.MIMETYPE_XML);
    assertEquals(200, response.getCode());
    JAXBContext ctx = JAXBContext.newInstance(CellSetModel.class);
    Unmarshaller ush = ctx.createUnmarshaller();
    CellSetModel model = (CellSetModel) ush.unmarshal(response.getStream());
    int count = TestScannerResource.countCellSet(model);
    assertEquals(1, count);
    assertEquals("aab",
      new String(model.getRows().get(0).getCells().get(0).getValue(), StandardCharsets.UTF_8));
  }
Read protobuf stream.
@param inputStream the input stream
@return The number of rows in the cell set model.
@throws IOException Signals that an I/O exception has occurred.
hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/TestTableScan.java