### Question:
EventNameDestinationResolver implements JMSDestinationResolver<String> { @Override public String resolveDestination(Class<? extends Event> eventClass, Object[] args) { if (eventClass != null) { return destinationBase + "." + eventClass.getSimpleName(); } return destinationBase; } EventNameDestinationResolver(String destinationBase); @Override String resolveDestination(Class<? extends Event> eventClass, Object[] args);  }### Answer:
@Test public void test() { final String base = "base"; EventNameDestinationResolver resolver = new EventNameDestinationResolver(base); resolver.resolveDestination(null, null); String result = resolver.resolveDestination(DummyEventImpl.class, null); assertEquals(result, "base.DummyEventImpl"); }