@Test
public void testDetect_whiteNoiseWithBreakout() throws Exception {

    val bufferSize = 20;
    val hyperparams = new EdmxHyperparams()
            .setBufferSize(bufferSize)
            .setDelta(6)
            .setNumPerms(199)
            .setStrongAlpha(0.01)
            .setWeakAlpha(0.05);
    val trusted = true;
    val detectorUnderTest = new EdmxDetector(UUID.randomUUID(), hyperparams, trusted);
    val metricDef = TestObjectMother.metricDefinition();
    val is = ClassLoader.getSystemResourceAsStream("datasets/white-noise-with-breakout-at-row-600.csv");
    val metricFrame = MetricFrameLoader.loadCsv(metricDef, is, false);
    val metricDataList = metricFrame.getMetricData();
    for (int i = 0; i < 700; i++) {
        val metricData = metricDataList.get(i);
        val result = (EdmxDetectorResult) detectorUnderTest.detect(metricData);
        log.trace("row={}: {}", i + 1, result);
        assertEquals(i < bufferSize - 1, result.isWarmup());
    }
}