ConfidenceLevelUtils { public static Boolean isValidConfidenceLevel(Float confidenceLevel, Float confidenceLevelThreshold) { return Objects.isNull(confidenceLevelThreshold) || confidenceLevel >= confidenceLevelThreshold; } private  ConfidenceLevelUtils(); static Float evaluateConfidenceLevelThreshold(String trustLevelThreshold); static Boolean isValidConfidenceLevel(Float confidenceLevel, Float confidenceLevelThreshold);  }
@Test public void isValidConfidenceLevelShouldReturnTrueWhenThresholdIsNull() { assertTrue(ConfidenceLevelUtils.isValidConfidenceLevel(1.0f, null)); }
@Test public void isValidConfidenceLevelShouldReturnTrueWhenConfidenceLevelIsAboveThreshold() { assertTrue(ConfidenceLevelUtils.isValidConfidenceLevel(1.0f, 0.9f)); }
@Test public void isValidConfidenceLevelShouldReturnTrueWhenConfidenceLevelIsEqualToThreshold() { assertTrue(ConfidenceLevelUtils.isValidConfidenceLevel(1.0f, 1.0f)); }
@Test public void isValidConfidenceLevelShouldReturnFalseWhenConfidenceLevelIsBelowThreshold() { assertFalse(ConfidenceLevelUtils.isValidConfidenceLevel(0.9f, 1.0f)); }