@Override
  public GetResponse get(RpcController controller, GetRequest request) throws ServiceException {
    byte[] regionName = request.getRegion().getValue().toByteArray();
    Map<byte[], Result> m = this.gets.get(regionName);
    GetResponse.Builder builder = GetResponse.newBuilder();
    if (m != null) {
      byte[] row = request.getGet().getRow().toByteArray();
      builder.setResult(ProtobufUtil.toResult(m.get(row)));
    }
    return builder.build();
  }
Use this method to set what a scanner will reply as we next through
hbase-server/src/test/java/org/apache/hadoop/hbase/master/MockRegionServer.java