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());
        }
    }
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 ( ) ) ; } }
Verifies that the Rollout is in the required status.

@param rollout
the Rollout
@param status
the Status