Margin extends AbstractCssProperty<Margin> implements StateChangeInformer<CssProperty> { @Override public String getCssValue() { return cssValue; } 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 testMarginString() { Margin margin = new Margin("2cm 4cm 3cm 4cm"); assertEquals("2cm 4cm 3cm 4cm", margin.getCssValue()); }
@Test public void testMarginMargin() { Margin margin = new Margin("9px"); Margin margin1 = new Margin(margin); assertEquals("9px", margin1.getCssValue()); }
@Test public void testGetCssValue() { Margin margin = new Margin("9px"); assertEquals("9px", margin.getCssValue()); }