@Test
  public void test() throws IOException {
    try (Table t = TEST_UTIL.getConnection().getTable(TABLE)) {
      Cell[] expected = new Cell[2];
      expected[0] = new KeyValue(ROW, CF, COLA, TS, COLA);
      expected[1] = new KeyValue(ROW, CF, COLC, TS, COLC);

      Put p = new Put(ROW);
      p.addColumn(CF, COLA, TS, COLA);
      p.addColumn(CF, COLB, TS, COLB);
      p.addColumn(CF, COLC, TS, COLC);
      t.put(p);

      // check get request
      Get get = new Get(ROW);
      get.addColumn(CF, COLA);
      get.addColumn(CF, COLC);
      Result getResult = t.get(get);
      assertArrayEquals(expected, getResult.rawCells());

      // check scan request
      Scan scan = new Scan().withStartRow(ROW);
      scan.addColumn(CF, COLA);
      scan.addColumn(CF, COLC);
      ResultScanner scanner = t.getScanner(scan);
      List scanResult = new ArrayList<Cell>();
      for (Result result = scanner.next(); (result != null); result = scanner.next()) {
        scanResult.addAll(result.listCells());
      }
      assertArrayEquals(expected, scanResult.toArray(new Cell[scanResult.size()]));
    }
  }
Testcase for HBASE-21032, where use the wrong readType from a Scan instance which is actually a
get scan and cause returning only 1 cell per rpc call.
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestGetScanColumnsWithNewVersionBehavior.java