### Question:
InMemoryExchange implements Exchange<T> { @Override public String getName() { return name; } InMemoryExchange(final String name); void addSubscriber(final MessageQueue<T> messageQueue); @Override void route(final T message); @Override String getName(); @Override String toString();  }### Answer:
@Test public void shouldReturnName() { final String name = randomString(); final InMemoryExchange<TypedMessage> inMemoryExchange = new InMemoryExchange<TypedMessage>(name); final String returnedName = inMemoryExchange.getName(); assertEquals(name, returnedName); }