### Question:
InMemoryMessageQueue implements MessageQueue<T>, Resettable { @Override public void send(final T message) { queue.add(message); inMemoryMessageQueuePoller.poll(); } @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 shouldPollQueues_onSend() { final InMemoryMessageQueue<TypedMessage> inMemoryMessageQueue = new InMemoryMessageQueue<TypedMessage>( randomString(), mockInMemoryMessageQueuePoller); final TypedMessage mockMessage = mock(TypedMessage.class); inMemoryMessageQueue.send(mockMessage); verify(mockInMemoryMessageQueuePoller).poll(); }