@Test
  public void testRawScanWithColumns() throws Exception {
    TableDescriptor htd = hbu.createTableDescriptor(TableName.valueOf(name.getMethodName()), 0, 3,
      HConstants.FOREVER, KeepDeletedCells.TRUE);
    Region region = hbu.createLocalHRegion(htd, null, null);

    Scan s = new Scan();
    s.setRaw(true);
    s.readAllVersions();
    s.addColumn(c0, c0);

    try {
      region.getScanner(s);
      fail("raw scanner with columns should have failed");
    } catch (org.apache.hadoop.hbase.DoNotRetryIOException dnre) {
      // ok!
    }

    HBaseTestingUtil.closeRegionAndWAL(region);
  }
The ExplicitColumnTracker does not support "raw" scanning.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestKeepDeletes.java