Margin extends AbstractCssProperty<Margin> implements StateChangeInformer<CssProperty> { public void setAsInherit() { setCssValue(INHERIT); } Margin();  Margin(final String cssValue);  Margin(final Margin marginBottom); Margin setValue(final String value); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); String getValue(); @Override Margin setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); void setAsAuto(); MarginTop getMarginTop(); void setMargin(final MarginTop marginTop,
            final MarginRight marginRight, final MarginBottom marginBottom,
            final MarginLeft marginLeft); MarginRight getMarginRight(); MarginBottom getMarginBottom(); MarginLeft getMarginLeft(); @Override void stateChanged(final CssProperty stateChangedObject); boolean hasPredefinedConstantValue(); static boolean isValid(final String cssValue); static final String INITIAL; static final String INHERIT; }
@Test public void testSetAsInherit() { Margin margin = new Margin(); margin.setAsInherit(); assertEquals(Margin.INHERIT, margin.getCssValue()); }