### Question:
SpanUtils { public static Tracer.SpanBuilder withQueryMessageTags(Tracer.SpanBuilder spanBuilder, Message<?> queryMessage, String queryName) { return spanBuilder.withTag(TAG_AXON_ID, queryMessage.getIdentifier()) .withTag(TAG_AXON_MESSAGE_TYPE, QueryMessage.class.getSimpleName()) .withTag(TAG_AXON_PAYLOAD_TYPE, queryMessage.getPayloadType().getName()) .withTag(TAG_AXON_MESSAGE_NAME, queryName); }  static Tracer.SpanBuilder withMessageTags(Tracer.SpanBuilder spanBuilder, Message<?> message); static Tracer.SpanBuilder withQueryMessageTags(Tracer.SpanBuilder spanBuilder,
                                                          Message<?> queryMessage,
                                                          String queryName); static String resolveMessageType(Message<?> message); static String messageName(Message<?> message);  }### Answer:
@Test void testWithQueryMessageTags() { MockTracer.SpanBuilder spanBuilder = mockTracer.buildSpan("operation-name"); SpanUtils.withQueryMessageTags(spanBuilder, TEST_QUERY, TEST_QUERY.getQueryName()); MockSpan resultSpan = spanBuilder.start(); Map<String, Object> resultTags = resultSpan.tags(); assertTrue(resultTags.containsKey("axon.message.id")); assertEquals(TEST_QUERY.getIdentifier(), resultTags.get("axon.message.id")); assertTrue(resultTags.containsKey("axon.message.type")); assertEquals("QueryMessage", resultTags.get("axon.message.type")); assertTrue(resultTags.containsKey("axon.message.payload-type")); assertEquals(TEST_QUERY.getPayloadType().getName(), resultTags.get("axon.message.payload-type")); assertTrue(resultTags.containsKey("axon.message.message-name")); assertEquals(TEST_QUERY.getQueryName(), resultTags.get("axon.message.message-name")); }