@Test
public void testCreateDetector() {

    val testDetectorMappingSpanContext = new SpanContext(UUID.randomUUID(), UUID.randomUUID(),
            UUID.randomUUID());
    val testChildSpan = noOpsTracer.buildSpan("create-detector").asChildOf(testDetectorMappingSpanContext).start();
    when(trace.extractParentSpan(httpHeaders)).thenReturn(testDetectorMappingSpanContext);
    when(trace.startSpan("create-detector", testDetectorMappingSpanContext)).thenReturn(testChildSpan);
    val uuidStr = controllerUnderTest.createDetector(legalParamsDetector, httpHeaders);
    val uuid = UUID.fromString(uuidStr);
    assertNotNull(uuid);
}