@Override
        public MultiResponse answer(InvocationOnMock invocation) throws Throwable {
          return buildMultiResponse(invocation.getArgument(1));
        }
A mocked master services. Tries to fake it. May not always work.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/assignment/MockMasterServices.java