code: public static void verifyRolloutInStatus(final Rollout rollout, final Rollout.RolloutStatus status) {
          if (!rollout.getStatus().equals(status)) {
              throw new RolloutIllegalStateException("Rollout is not in status " + status.toString());
          }
      }
docs: Verifies that the Rollout is in the required status.
  
  @param rollout
  the Rollout
  @param status
  the Status