@Test
  public void testExecProcedureWithRet() throws Exception {
    byte[] result = admin.execProcedureWithReturn(SimpleMasterProcedureManager.SIMPLE_SIGNATURE,
      "myTest2", new HashMap<>()).get();
    assertArrayEquals("Incorrect return data from execProcedure",
      Bytes.toBytes(SimpleMasterProcedureManager.SIMPLE_DATA), result);
  }
Class to test asynchronous procedure admin operations.
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAsyncProcedureAdminApi.java