@Test
public void testEdmx_noBreakout() {

    val data = new double[100];
    for (int i = 0; i < data.length; i++) {
        data[i] = i % 2 == 0 ? 1.0 : 1.2;
    }
    // When there's no permutation test, the algo returns the location with the highest energyDistance.
    // Or one of them, I guess, when there are multiple such locations (haven't checked).
    val result1 = EdmxEstimator.estimate(data, 5, 0);
    log.trace("result1={}", result1);
    assertEquals(49, result1.getLocation());
    assertEquals(24.99, result1.getEnergyDistance(), TOLERANCE);
    // With permutations
    val result2 = EdmxEstimator.estimate(data, 5, 20);
    log.trace("result2={}", result2);
    assertEquals(49, result2.getLocation());
    assertEquals(24.99, result2.getEnergyDistance(), TOLERANCE);
}