### Question:
EventLogger { public void logMessage(EventLogMessage logMessage) { getLogger().info(logMessage.getMessage()); }  void logMessage(EventLogMessage logMessage);  }### Answer:
@Test void logMessage_shouldWriteMessageToLogger() { EventLogger eventLogger = new MockEventLogger(logger); EventLogMessage logMessage = jsonReader.getObjectFromFile(LOG_MESSAGE_JSON_PATH, EventLogMessage.class); eventLogger.logMessage(logMessage); verify(logger).info(MESSAGE); }