@Test
public void detectHighVoltageViolation() {

    voltageLevelHv1.getBusView().getBusStream()
            .forEach(b -> detector.checkVoltage(b, 520, violationsCollector::add));
    Assertions.assertThat(violationsCollector)
            .hasSize(1)
            .allSatisfy(v -> {
                Assert.assertEquals(LimitViolationType.HIGH_VOLTAGE, v.getLimitType());
                assertEquals(500, v.getLimit(), 0d);
                assertEquals(520, v.getValue(), 0d);
                assertNull(v.getSide());
                assertEquals(Integer.MAX_VALUE, v.getAcceptableDuration());
            });
}