table.getURI().toString() + "info:name,info:email"
));
assertEquals(30, mToolOutputLines.length);
EntityIdFactory eif = EntityIdFactory.getFactory(layout);
EntityId startEid = eif.getEntityId("christophe@usermail.example.com"); //second row
EntityId limitEid = eif.getEntityId("john.doe@gmail.com"); //second to last row
String startHbaseRowKey = Hex.encodeHexString(startEid.getHBaseRowKey());
String limitHbaseRowKey = Hex.encodeHexString(limitEid.getHBaseRowKey());
assertEquals(BaseTool.SUCCESS, runTool(new ScanTool(),
table.getURI().toString() + "info:name",
"--start-row=hbase=hex:" + startHbaseRowKey, // start at the second row.
"--limit-row=hbase=hex:" + limitHbaseRowKey // end at the 2nd to last row (exclusive).
));