FortifyUtils { public static String fortifyToSonarQubeSeverity(String fortifySeverity) { String severity; Double level = Double.valueOf(fortifySeverity); if (level >= FortifyUtils.BLOCKER_SEVERITY_THRESHOLD) { severity = Severity.BLOCKER; } else if (level >= FortifyUtils.CRITICAL_SEVERITY_THRESHOLD) { severity = Severity.CRITICAL; } else if (level >= FortifyUtils.MAJOR_SEVERITY_THRESHOLD) { severity = Severity.MAJOR; } else if (level >= FortifyUtils.MINOR_SEVERITY_THRESHOLD) { severity = Severity.MINOR; } else { severity = Severity.INFO; } return severity; } private  FortifyUtils(); static SMInputFactory newStaxParser(); static String fortifyToSonarQubeSeverity(String fortifySeverity);  }
@Test public void testFortifyToSonarQubeSeverity() { assertThat(FortifyUtils.fortifyToSonarQubeSeverity(this.fortifySeverity)).isEqualTo(this.expectedSeverity); }