### Question:
RequestResponseLogger { public void logMessage(RequestResponseLogMessage logMessage) { getLogger().info(logMessage.getMessage()); }  void logMessage(RequestResponseLogMessage logMessage);  }### Answer:
@Test void log_shouldWriteMessageToLogger() { RequestResponseLogger requestResponseLogger = new MockRequestResponseLogger(logger); RequestResponseLogMessage logMessage = jsonReader.getObjectFromFile(LOG_MESSAGE_JSON_PATH, RequestResponseLogMessage.class); requestResponseLogger.logMessage(logMessage); verify(logger).info(MESSAGE); }