Margins implements TagParameters { public MarginsBuilder toBuilder() { return new MarginsBuilder(this.all, this.top, this.right, this.bottom, this.left); } Margins(final Length all, final Length top, final Length right, final Length bottom,
            final Length left); boolean areVoid(); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override boolean equals(final Object o); @Override String toString(); @Override int hashCode(); MarginsBuilder toBuilder();  }
@Test public final void testToBuilder() throws IOException { final Margins margins = new MarginsBuilder().top(SimpleLength.pt(15)).build(); final Margins otherMargins = margins.toBuilder().left(SimpleLength.pt(10)).build(); TestHelper.assertXMLEquals(" fo:margin-top=\"15pt\" fo:margin-left=\"10pt\"", otherMargins); }