### Question:
JmsTracing { public XAConnection xaConnection(XAConnection xaConnection) { return TracingXAConnection.create(xaConnection, this); } JmsTracing(Builder builder); static JmsTracing create(Tracing tracing); static JmsTracing create(MessagingTracing messagingTracing); static Builder newBuilder(Tracing tracing); static Builder newBuilder(MessagingTracing messagingTracing); Connection connection(Connection connection); QueueConnection queueConnection(QueueConnection connection); TopicConnection topicConnection(TopicConnection connection); XAConnection xaConnection(XAConnection xaConnection); XAQueueConnection xaQueueConnection(XAQueueConnection connection); XATopicConnection xaTopicConnection(XATopicConnection connection); ConnectionFactory connectionFactory(ConnectionFactory connectionFactory); XAConnectionFactory xaConnectionFactory(XAConnectionFactory xaConnectionFactory); MessageListener messageListener(MessageListener messageListener, boolean addConsumerSpan); Span nextSpan(Message message);  }### Answer:
@Test public void xaConnection_wrapsInput() { assertThat(jmsTracing.xaConnection(mock(XAConnection.class))) .isInstanceOf(TracingXAConnection.class); }
@Test public void xaConnection_doesntDoubleWrap() { XAConnection wrapped = jmsTracing.xaConnection(mock(XAConnection.class)); assertThat(jmsTracing.xaConnection(wrapped)) .isSameAs(wrapped); }