public static String cvssV2ScoreToSeverity(Double score) {
        if (score != null) {
            if (ZERO.compareTo(score) <= 0 && FOUR.compareTo(score) > 0) {
                return LOW;
            } else if (FOUR.compareTo(score) <= 0 && SEVEN.compareTo(score) > 0) {
                return MEDIUM;
            } else if (SEVEN.compareTo(score) <= 0 && TEN.compareTo(score) >= 0) {
                return HIGH;
            }
        }
        return UNKNOWN;
    }
@Test
    public void testCvssV2ScoreToSeverity() {
        Double score = -1.0;
        String expResult = "UNKNOWN";
        String result = CvssUtil.cvssV2ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 0.0;
        expResult = "LOW";
        result = CvssUtil.cvssV2ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 1.0;
        expResult = "LOW";
        result = CvssUtil.cvssV2ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 3.9;
        expResult = "LOW";
        result = CvssUtil.cvssV2ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 4.0;
        expResult = "MEDIUM";
        result = CvssUtil.cvssV2ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 6.9;
        expResult = "MEDIUM";
        result = CvssUtil.cvssV2ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 7.0;
        expResult = "HIGH";
        result = CvssUtil.cvssV2ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 10.0;
        expResult = "HIGH";
        result = CvssUtil.cvssV2ScoreToSeverity(score);
        assertEquals(expResult, result);

        score = 11.0;
        expResult = "UNKNOWN";
        result = CvssUtil.cvssV2ScoreToSeverity(score);
        assertEquals(expResult, result);
    }