@Test
public void testFindByUuid() {

    val testDetectorMappingSpanContext = new SpanContext(UUID.randomUUID(), UUID.randomUUID(),
            UUID.randomUUID());
    val testChildSpan = noOpsTracer.buildSpan("find-detector-by-uuid").asChildOf(testDetectorMappingSpanContext).start();
    when(trace.extractParentSpan(httpHeaders)).thenReturn(testDetectorMappingSpanContext);
    when(trace.startSpan("find-detector-by-uuid", testDetectorMappingSpanContext)).thenReturn(testChildSpan);
    val actualDetector = controllerUnderTest.findByUuid(someUuid.toString(), httpHeaders);
    assertNotNull(actualDetector);
}