public int echo(int val) {
      return val;
    }
A private master class similar to that used by HMasterCommandLine when running in local mode.
hbase-server/src/test/java/org/apache/hadoop/hbase/TestLocalHBaseCluster.java