class ResultMatch {

    public Status getConsolidatedStatus() {
        switch (getStatus()) {
            case PASSED:
                return Status.PASSED;
            case SKIPPED:
            case PENDING:
            case AMBIGUOUS:
            case UNDEFINED:
                return Status.SKIPPED;
            case FAILED:
            default:
                return Status.FAILED;
        }
    }

}