Opacity extends AbstractCssProperty<Opacity> { @Override public String getCssName() { return CssNameConstants.OPACITY; } Opacity();  Opacity(final String cssValue);  Opacity(final Opacity opacity);  Opacity(final float value); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); Float getValue(); void setValue(final float value); @Override Opacity setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); static boolean isValid(final String cssValue); static final String INITIAL; static final String INHERIT; }
@Test public void testGetCssName() { Opacity opacity = new Opacity(0.5F); assertEquals(CssNameConstants.OPACITY, opacity.getCssName()); }