@Test
  public void testCompoundFilter() throws IOException, JAXBException {
    StringBuilder builder = new StringBuilder();
    builder.append("/*");
    builder.append("?");
    builder.append(Constants.FILTER + "="
      + URLEncoder.encode("PrefixFilter('abc') AND QualifierFilter(=,'binary:1')", "UTF-8"));
    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("abc",
      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