### Question:
JsonLog { public static void trace(final Logger logger, final Object message) { logger.trace(asJson(message)); }  static void trace(final Logger logger, final Object message); static void debug(final Logger logger, final Object message); static void info(final Logger logger, final Object message); static void warn(final Logger logger, final Object message); static void error(final Logger logger, final Object message);  }### Answer:
@Test public void shouldLogTraceJson_withLoggerAndMessage() throws Exception { final Map<String, Object> message = randomMessage(); JsonLog.trace(logger, message); final ArgumentCaptor<String> captor = ArgumentCaptor.forClass(String.class); verify(logger).trace(captor.capture()); assertExpectedJson(message, captor.getValue()); }