### Question:
CSSColorHelper { public static boolean isHSLColorValue (@Nullable final String sValue) { final String sRealValue = StringHelper.trim (sValue); return StringHelper.hasText (sRealValue) && sRealValue.startsWith (CCSSValue.PREFIX_HSL) && RegExHelper.stringMatchesPattern (PATTERN_HSL, sRealValue); } private  CSSColorHelper(); static boolean isColorValue(@Nullable final String sValue); static boolean isRGBColorValue(@Nullable final String sValue); @Nullable static CSSRGB getParsedRGBColorValue(@Nullable final String sValue); static boolean isRGBAColorValue(@Nullable final String sValue); @Nullable static CSSRGBA getParsedRGBAColorValue(@Nullable final String sValue); static boolean isHSLColorValue(@Nullable final String sValue); @Nullable static CSSHSL getParsedHSLColorValue(@Nullable final String sValue); static boolean isHSLAColorValue(@Nullable final String sValue); @Nullable static CSSHSLA getParsedHSLAColorValue(@Nullable final String sValue); static boolean isHexColorValue(@Nullable final String sValue); @Nonnegative static int getRGBValue(final int nRGBPart); @Nonnegative static float getOpacityToUse(final float fOpacity); @Nonnull @Nonempty static String getRGBColorValue(final int nRed, final int nGreen, final int nBlue); @Nonnull @Nonempty static String getRGBAColorValue(final int nRed, final int nGreen, final int nBlue, final float fOpacity); @Nonnegative static int getHSLHueValue(final int nHSLPart); @Nonnegative static float getHSLHueValue(final float fHSLPart); @Nonnegative static int getHSLPercentageValue(final int nHSLPart); @Nonnegative static float getHSLPercentageValue(final float nHSLPart); @Nonnull @Nonempty static String getHSLColorValue(final int nHue, final int nSaturation, final int nLightness); @Nonnull @Nonempty static String getHSLColorValue(final float fHue, final float fSaturation, final float fLightness); @Nonnull @Nonempty static String getHSLAColorValue(final int nHue, final int nSaturation, final int nLightness, final float fOpacity); @Nonnull @Nonempty static String getHSLAColorValue(final float fHue, final float fSaturation, final float fLightness, final float fOpacity); @Nonnull @Nonempty static String getHexColorValue(final int nRed, final int nGreen, final int nBlue); @Nonnull @Nonempty static float [] getRGBAsHSLValue(final int nRed, final int nGreen, final int nBlue); @Nonnull @Nonempty static int [] getHSLAsRGBValue(final float fHue, final float fSaturation, final float fLightness); static final int RGB_MIN; static final int RGB_MAX; static final int RGB_RANGE; static final int HSL_MIN; static final int HSL_MAX; static final int HSL_RANGE; static final int PERCENTAGE_MIN; static final int PERCENTAGE_MAX; static final float OPACITY_MIN; static final float OPACITY_MAX; }### Answer:
@Test public void testIsHSLColorValue () { final String [] HSL_COLORS = new String [] { "hsl(0,0%,0%)", "hsl(255,0%,0%)", "hsl(300,0%,0%)", "hsl( 300 , 0% , 0% ) ", "hsl(255,-10%,0%)", "hsl(110%, 0%, 0%)", "hsl(100%, 0%, 0%)" }; for (final String sHSLColor : HSL_COLORS) { assertTrue (sHSLColor, CSSColorHelper.isHSLColorValue (sHSLColor)); assertTrue (sHSLColor, CSSColorHelper.isColorValue (sHSLColor)); } assertFalse (CSSColorHelper.isHSLColorValue ("hsl(0,0,1)")); assertFalse (CSSColorHelper.isHSLColorValue ("hsl(a,0,0)")); assertFalse (CSSColorHelper.isHSLColorValue ("hsl(0,0,0,0)")); }