### Question:
InMemoryMessagePublisher implements MessagePublisher<T>, Resettable { public List<T> getPublishedMessages() { return publishedMessages; } InMemoryMessagePublisher(final Exchange<T> exchange); @Override void publish(final T message); void setForwardMessagesToExchange(final boolean forwardMessagesToExchange); List<T> getPublishedMessages(); @Override String toString(); @Override void reset();  }### Answer:
@Test public void shouldReturnNoPublishedMessages_afterConstruction() { final List<TypedMessage> typedMessages = inMemoryMessagePublisher.getPublishedMessages(); assertTrue(typedMessages.isEmpty()); }