### Question:
MessagePublisher implements AutoCloseable { public String getName() { return name; } 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 TestGetName() { assertEquals(name, messagePublisher.getName()); }