@Override
    public String getDestination(Exchange exchange, Endpoint endpoint) {
        String destination = super.getDestination(exchange, endpoint);
        if (destination.startsWith(QUEUE_PREFIX)) {
            destination = destination.substring(QUEUE_PREFIX.length());
        }
        return destination;
    }
@Test
    public void testGetDestination() {
        Endpoint endpoint = Mockito.mock(Endpoint.class);

        Mockito.when(endpoint.getEndpointUri()).thenReturn("stomp:queue:test");

        AbstractMessagingSpanDecorator decorator = new StompSpanDecorator();

        assertEquals("test", decorator.getDestination(null, endpoint));
    }