TerminalTextStyle { public TerminalTextStyle() { } TerminalTextStyle();  TerminalTextStyle(CharacterType type);  TerminalTextStyle(boolean bold, boolean faint, boolean italic, boolean underline,
                             boolean blink, boolean invert, boolean crossedOut); boolean isBold(); void setBold(boolean bold); boolean isFaint(); boolean isItalic(); void setItalic(boolean italic); boolean isUnderline(); void setUnderline(boolean underline); boolean isBlink(); void setBlink(boolean blink); boolean isInvert(); void setInvert(boolean invert); boolean isCrossedOut(); void setCrossedOut(boolean crossedOut); boolean isConceal(); void setConceal(boolean conceal); boolean isFormatted(); @Override String toString(); int getLength(); @Override boolean equals(Object o); @Override int hashCode(); String getValueComparedToPrev(TerminalTextStyle prev);  }
@Test public void testTerminalTextStyle() { TerminalTextStyle textStyle = new TerminalTextStyle(); assertFalse(textStyle.isBlink()); assertFalse(textStyle.isBold()); assertFalse(textStyle.isFormatted()); assertFalse(textStyle.isUnderline()); textStyle = new TerminalTextStyle(CharacterType.BOLD); assertFalse(textStyle.isBlink()); assertTrue(textStyle.isBold()); assertTrue(textStyle.isFormatted()); assertFalse(textStyle.isUnderline()); }