}
//starting from each row, validate results should contain the starting row
for (int startRowId = 0; startRowId < ROW_COUNT; startRowId++) {
InternalScanner scanner = this.hmemcache.getScanner(timestamp,
cols, getRowName(startRowId));
HStoreKey key = new HStoreKey();
TreeMap<byte[], Cell> results =
new TreeMap<byte[], Cell>(Bytes.BYTES_COMPARATOR);
for (int i = 0; scanner.next(key, results); i++) {
int rowId = startRowId + i;
assertTrue("Row name",
key.toString().startsWith(Bytes.toString(getRowName(rowId))));
assertEquals("Count of columns", COLUMNS_COUNT, results.size());
TreeMap<byte[], Cell> row =
new TreeMap<byte[], Cell>(Bytes.BYTES_COMPARATOR);
for (Map.Entry<byte[], Cell> e : results.entrySet()) {
row.put(e.getKey(),e.getValue());