@Override
    public String getOperationName(Exchange exchange, Endpoint endpoint) {
        Object name = exchange.getProperty(Exchange.TIMER_NAME);
        if (name instanceof String) {
            return (String) name;
        }

        return super.getOperationName(exchange, endpoint);
    }
@Test
    public void testGetOperationName() {
        Exchange exchange = Mockito.mock(Exchange.class);

        Mockito.when(exchange.getProperty(Exchange.TIMER_NAME)).thenReturn(TEST_NAME);

        SpanDecorator decorator = new TimerSpanDecorator() {
            @Override
            public String getComponent() {
                return null;
            }
        };

        assertEquals(TEST_NAME, decorator.getOperationName(exchange, null));
    }