Log { public void info(String format, Object... args) { String s = String.format(format, args); outPrintln(s); }  void setVerbose(boolean verbose); void debug(String format, Object... args); void info(String format, Object... args); void error(String format, Object... args); void exception(Throwable t, String format, Object... args);  }
@Test public void testInfo() { assertEquals("", mLog.getOut()); assertEquals("", mLog.getErr()); mLog.info("Test %d", 43); assertEquals("Test 43\n", mLog.getOut()); assertEquals("", mLog.getErr()); }