Borders implements TagParameters { public BordersBuilder toBuilder() { return new BordersBuilder(this.all, this.top, this.right, this.bottom, this.left); } Borders(final BorderAttribute all, final BorderAttribute top, final BorderAttribute right,
            final BorderAttribute bottom, final BorderAttribute left); boolean areVoid(); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override boolean equals(final Object o); @Override String toString(); @Override int hashCode(); BordersBuilder toBuilder();  }
@Test public final void testToBuilder() throws IOException { final BorderAttribute borderAttribute = new BorderAttributeBuilder().borderSize(SimpleLength.pt(1)).build(); final Borders borders = new BordersBuilder().left(borderAttribute).build(); final Borders otherBorders = borders.toBuilder().right(borderAttribute).build(); this.assertAttrXMLEquals(" fo:border-right=\"1pt\" fo:border-left=\"1pt\"", otherBorders); }