@Test
public void testGetDetectorsToTrain() {

    val testDetectorMappingSpanContext = new SpanContext(UUID.randomUUID(), UUID.randomUUID(),
        UUID.randomUUID());
    val testChildSpan = noOpsTracer.buildSpan("find-detectors-to-train-next").asChildOf(testDetectorMappingSpanContext).start();
    when(trace.extractParentSpan(httpHeaders)).thenReturn(testDetectorMappingSpanContext);
    when(trace.startSpan("find-detectors-to-train-next", testDetectorMappingSpanContext)).thenReturn(testChildSpan);
    controllerUnderTest.getDetectorsToTrain(1595152176000L, httpHeaders);
    verify(detectorService, times(1)).getDetectorsToBeTrained(1595152176000L);
}