startKey, endKey);
action.addEntityColumn("test", "f", "c", DataType.STRING, Bytes.toBytes(""));
action.addEntityColumn("test", "f", "c", DataType.STRING, Bytes.toBytes(""));
action.setBatch(batch);
action.setLimit(limit);
ScanActionProto proto = ProtobufUtil.convertScanAction(action);
action = (ScanAction) ProtobufUtil.convertScanAction(proto);
Assert.assertTrue(readerMode == action.getReaderMode());
Assert.assertTrue(indexTableName.equals(action.getIndexTableName()));
Assert.assertTrue(entityTableName.equals(action.getEntityTableName()));
Assert.assertTrue(Bytes.toString(action.getStartKey()).equals("000"));