### Question:
MessagePublisher implements AutoCloseable { synchronized void updateRoute(Route route, List<MessageProducer> producers) { LoggingService.logDebug(MODULE_NAME, "Updating route"); this.route = route; this.producers = producers; } MessagePublisher(String name, Route route, List<MessageProducer> producers); String getName(); synchronized void close(); synchronized List<Message> messageQuery(long from, long to); Route getRoute();  }### Answer:
@Test public void testUpdateRoute() { try { messagePublisher.updateRoute(route, messageProducers); verifyStatic(LoggingService.class); LoggingService.logDebug(MODULE_NAME, "Updating route"); } catch (Exception e) { fail("This should not happen"); } }