HslaCssValue extends AbstractBean<HslaCssValue> { public void setH(final int h) { if (h < 0 || h > 360) { throw new InvalidValueException( "h paramater accept values only from 0 to 360."); } this.h = h; hsl = "hsla(" + h + ", " + s + "%, " + l + "%, " + a + ")"; if (getStateChangeInformer() != null) { getStateChangeInformer().stateChanged(this); } } HslaCssValue();  HslaCssValue(final String hslCssValue);  HslaCssValue(final HslaCssValue hslCssValue);  HslaCssValue(final int h, final float s, final float l,
            final float a); void setHsla(final String hsl); int getH(); void setH(final int h); float getS(); void setS(final float s); float getL(); static CssLengthUnit getSUnit(); static CssLengthUnit getLUnit(); void setL(final float l); void setA(final float a); float getA(); @Override String toString(); @Override String getValue(); static boolean isValid(final String hslString);  }
@Test public void testSetH() { testGetH(); }
@Test(expected = InvalidValueException.class) public void testSetHInvalidValue() { HslaCssValue hslaCssValue = new HslaCssValue(); try { hslaCssValue.setH(361); } catch (InvalidValueException e) { hslaCssValue.setH(-1); } }