### Question:
InMemoryMessageQueue implements MessageQueue<T>, Resettable { @Override public String getName() { return name; } @SuppressWarnings("unchecked")  InMemoryMessageQueue(final String name, final InMemoryMessageQueuePoller inMemoryMessageQueuePoller,
            final InMemoryExchange<T>... inMemoryExchanges); @Override void send(final T message); @Override void sendDelayedMessage(final T message, final int delaySeconds); @Override String getName(); @Override List<T> receive(final int waitTimeSeconds, final int maxMessages); @Override List<T> receive(); @Override void delete(final T message); @Override String toString(); @Override void reset();  }### Answer:
@Test public void shouldReturnName() { final String name = randomString(); final InMemoryMessageQueue<TypedMessage> inMemoryMessageQueue = new InMemoryMessageQueue<TypedMessage>(name, mockInMemoryMessageQueuePoller); final String returnedName = inMemoryMessageQueue.getName(); assertEquals(name, returnedName); }