Log { public static void print(String message) { if (!isDisabled()) { try { getOutput().write(message.getBytes()); } catch (IOException e) { e.printStackTrace(); } } }  static void print(String message); static void print(Object message); static void printLine(String message); static void printLine(); static void printConcat(Object... messages); static void printConcatLine(Object... messages); static void printLine(Object message); static void format(String format, Object... args); static void formatLine(String format, Object... args); static void setOutput(OutputStream _output); static OutputStream getOutput(); static void setDisabled(boolean _disabled); static boolean isDisabled(); static void disable(); static void enable();  }
@Test public void testPrint() throws IOException { Log.print("test test"); assertEquals("test test", OUTPUT.toString()); OUTPUT.reset(); Log.print(123); assertEquals("123", OUTPUT.toString()); OUTPUT.reset(); Log.print(123L); assertEquals("123", OUTPUT.toString()); OUTPUT.reset(); Log.print(123.0); assertEquals("123.0", OUTPUT.toString()); OUTPUT.reset(); }