### Question:
InMemoryMessageSender implements MessageSender<T>, Resettable { @Override public void send(final T message) throws MessageSendException { sentMessages.add(message); logger.debug("Message sent; message:[" + message + "] queue:[" + messageQueue.getName() + "]"); if (forwardMessagesToQueue) { messageQueue.send(message); } } InMemoryMessageSender(final MessageQueue<T> messageQueue); @Override void send(final T message); @Override void sendDelayedMessage(final T message, final int delaySeconds); List<T> getSentMessages(); void setForwardMessagesToQueue(final boolean forwardMessagesToQueue); @Override String toString(); @Override void reset();  }### Answer:
@Test public void shouldNotForwardMessageToQueueByDefault_onSendMessage() { final TypedMessage mockMessage = mock(TypedMessage.class); inMemoryMessageSender.send(mockMessage); verify(mockMessageQueue, never()).send(any(TypedMessage.class)); }