private void addCommitAnswer() throws IOException {
    doAnswer(new Answer<Void>() {
      @Override
      public Void answer(InvocationOnMock invocation) throws Throwable {
        member.receivedReachedGlobalBarrier(op);
        return null;
      }
    }).when(mockMemberComms).sendMemberAcquired(any());
  }
Add a 'in barrier phase' response to the mock controller when it gets a acquired notification
hbase-server/src/test/java/org/apache/hadoop/hbase/procedure/TestProcedureMember.java