### Question:
AnsiLogger implements KitLogger { public void warn(String format, Object ... params) { log.warn(colored(format, COLOR_WARNING, true, 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 emphasizeWarning() { TestLog testLog = new TestLog(); AnsiLogger logger = new AnsiLogger(testLog, true, null, false, "T>"); Ansi ansi = new Ansi(); logger.warn("%s messages support [[*]]emphasis[[*]] too","Warning"); assertEquals(ansi.fg(AnsiLogger.COLOR_WARNING) .a("T>") .a("Warning messages support ") .fgBright(AnsiLogger.COLOR_EMPHASIS) .a("emphasis") .fg(AnsiLogger.COLOR_WARNING) .a(" too") .reset().toString(), testLog.getMessage()); }