### Question:
TraceeMessageWriter { public static MessageProducer wrap(MessageProducer messageProducer) { return new TraceeMessageProducer(messageProducer); } private  TraceeMessageWriter(); static MessageProducer wrap(MessageProducer messageProducer); static QueueSender wrap(QueueSender queueSender); static TopicPublisher wrap(TopicPublisher topicPublisher);  }### Answer:
@Test public void shouldWrapMessageProducer() throws Exception { final MessageProducer producer = mock(MessageProducer.class); TraceeMessageWriter.wrap(producer).close(); verify(producer).close(); }
@Test public void shouldWrapQueueSender() throws Exception { final QueueSender sender = mock(QueueSender.class); TraceeMessageWriter.wrap(sender).close(); verify(sender).close(); }
@Test public void shouldWrapTopicPublisher() throws Exception { final TopicPublisher publisher = mock(TopicPublisher.class); TraceeMessageWriter.wrap(publisher).close(); verify(publisher).close(); }