### Question:
AnsiLogger implements KitLogger { public void debug(String message, Object ... params) { if (isDebugEnabled()) { log.debug(prefix + format(message, params)); } } AnsiLogger(Log log, boolean useColor, String verbose);  AnsiLogger(Log log, boolean useColor, String verbose, boolean batchMode);  AnsiLogger(Log log, boolean useColor, String verbose, boolean batchMode, String prefix); void debug(String message, Object ... params); void info(String message, Object ... params); void verbose(LogVerboseCategory logVerboseCategory, String message, Object ... params); void warn(String format, Object ... params); void error(String message, Object ... params); boolean isDebugEnabled(); boolean isVerboseEnabled(); void progressStart(); void progressUpdate(String layerId, String status, String progressMessage); void progressFinished(); static final String DEFAULT_LOG_PREFIX; }### Answer:
@Test public void emphasizeDebug() { TestLog testLog = new TestLog() { @Override public boolean isDebugEnabled() { return true; } }; AnsiLogger logger = new AnsiLogger(testLog, true, null, false, "T>"); logger.debug("Debug messages do not interpret [[*]]%s[[*]]", "emphasis"); assertEquals("T>Debug messages do not interpret [[*]]emphasis[[*]]", testLog.getMessage()); }