public static CvssV3Data.SeverityType cvssV3ScoreToSeverity(Double score) {
        if (score != null) {
            if (ZERO.compareTo(score) == 0) {
                return CvssV3Data.SeverityType.NONE;
            } else if (ZERO.compareTo(score) <= 0 && FOUR.compareTo(score) > 0) {
                return CvssV3Data.SeverityType.LOW;
            } else if (FOUR.compareTo(score) <= 0 && SEVEN.compareTo(score) > 0) {
                return CvssV3Data.SeverityType.MEDIUM;
            } else if (SEVEN.compareTo(score) <= 0 && NINE.compareTo(score) > 0) {
                return CvssV3Data.SeverityType.HIGH;
            } else if (NINE.compareTo(score) <= 0 && TEN.compareTo(score) >= 0) {
                return CvssV3Data.SeverityType.CRITICAL;
            }
        }
        return null;
    }
@Test
    public void testCvssV3ScoreToSeverity() {
        Double score = 0.0;
        CvssV3Data.SeverityType expResult = CvssV3Data.SeverityType.NONE;
        CvssV3Data.SeverityType result = CvssUtil.cvssV3ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 1.0;
        expResult = CvssV3Data.SeverityType.LOW;
        result = CvssUtil.cvssV3ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 3.9;
        expResult = CvssV3Data.SeverityType.LOW;
        result = CvssUtil.cvssV3ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 4.0;
        expResult = CvssV3Data.SeverityType.MEDIUM;
        result = CvssUtil.cvssV3ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 6.9;
        expResult = CvssV3Data.SeverityType.MEDIUM;
        result = CvssUtil.cvssV3ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 7.0;
        expResult = CvssV3Data.SeverityType.HIGH;
        result = CvssUtil.cvssV3ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 8.9;
        expResult = CvssV3Data.SeverityType.HIGH;
        result = CvssUtil.cvssV3ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 9.0;
        expResult = CvssV3Data.SeverityType.CRITICAL;
        result = CvssUtil.cvssV3ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 10.0;
        expResult = CvssV3Data.SeverityType.CRITICAL;
        result = CvssUtil.cvssV3ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 11.0;
        result = CvssUtil.cvssV3ScoreToSeverity(score);
        assertNull(result);

        score = -1.0;
        result = CvssUtil.cvssV3ScoreToSeverity(score);
        assertNull(result);
    }