TextProperties implements TagParameters { public TextPropertiesBuilder toBuilder() { return new TextPropertiesBuilder(this.fontColor, this.fontName, this.fontWeight, this.fontStyle, this.fontSizePercentage, this.fontSizeLength, this.fontUnderlineColor, this.fontUnderlineStyle); } TextProperties(final Color fontColor, final String fontName, final String fontWeight,
                   final String fontStyle, final double fontSizePercentage,
                   final Length fontSizeLength, final Color fontUnderlineColor,
                   final Underline fontUnderlineStyle); static TextPropertiesBuilder builder(); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); boolean isNotEmpty(); FontFace getFontFace(); TextPropertiesBuilder toBuilder();  }
@Test public final void testToBuilder() throws IOException { final TextProperties prop = TextProperties.builder().fontUnderlineStyle(TextProperties.Underline.DASH).build(); final TextProperties otherProp = prop.toBuilder().fontUnderlineColor(SimpleColor.RED).build(); TestHelper.assertXMLEquals("<style:text-properties style:text-underline-style=\"dash\" " + "style:text-underline-width=\"auto\" " + "style:text-underline-color=\"#ff0000\"/>", otherProp); }