TerminalColor { public TerminalColor() { } TerminalColor();  TerminalColor(Color text, Color background);  TerminalColor(Color textColor, Color background, Color.Intensity intensity);  TerminalColor(int text, int background);  TerminalColor(int text, Color background);  TerminalColor(int text, Color background, Color.Intensity intensity);  TerminalColor(Color text, int background);  TerminalColor(Color text, int background, Color.Intensity intensity); boolean isFormatted(); @Override boolean equals(Object o); @Override int hashCode(); String fullString(); String toString(); int getLength(); void write(PrintStream out); String toString(TerminalColor prev);  }
@Test public void testTerminalColor() { TerminalColor color = new TerminalColor( Color.DEFAULT, Color.BLACK); assertEquals("3"+Color.DEFAULT.getValue()+";4"+Color.BLACK.getValue(), color.toString()); assertTrue(color.isFormatted()); color = new TerminalColor(); assertFalse(color.isFormatted()); }