void setGetResult(final byte[] regionName, final byte[] row, final Result r) {
    Map<byte[], Result> value = this.gets.get(regionName);
    if (value == null) {
      // If no value already, create one. Needs to be treemap because we are
      // using byte array as key. Not thread safe.
      value = new TreeMap<>(Bytes.BYTES_COMPARATOR);
      this.gets.put(regionName, value);
    }
    value.put(row, r);
  }
Use this method filling the backing data source used by
{@link #get(RpcController, ClientProtos.GetRequest)}
@param regionName the region name to assign
@param row        the row key
@param r          the single row result
hbase-server/src/test/java/org/apache/hadoop/hbase/master/MockRegionServer.java