### Question:
Logger { public static void debug(String tag, String message, Object... values) { log(Level.DEBUG, tag, null, message, values); }  static void set(Level level); static boolean isDebugEnabled(); static void error(String tag, Throwable t, String message, Object... values); static void error(String tag, String message, Object... values); static void warn(String tag, String message, Object... values); static void warn(String tag, Throwable t, String message, Object... values); static void debug(String tag, String message, Object... values);  }### Answer:
@Test public void testDebugLogging() { Logger.debug("Test", "This is a test", null); LogItem logItem = ShadowLog.getLogsForTag(Logger.FORGE_ROCK).get(0); assertEquals(Log.INFO, logItem.type); assertEquals("[" + BuildConfig.VERSION_NAME + "] [Test]: This is a test", logItem.msg); }
@Test public void testDebugLoggingWithArgs() { Logger.debug("Test", "This is a test %s, %d", "hello", 3); LogItem logItem = ShadowLog.getLogsForTag(Logger.FORGE_ROCK).get(0); assertEquals(Log.INFO, logItem.type); assertEquals("[" + BuildConfig.VERSION_NAME + "] [Test]: This is a test hello, 3", logItem.msg); }