public boolean isSatisfied() {
      return satisfied;
    }
This method should be called in the main thread. It waits for all the conditions to occur in the other
threads and then verifies that they were in fact satisfied.
samza-yarn/src/test/java/org/apache/samza/job/yarn/util/MockContainerListener.java