@Test
public void detectLowVoltageViolation() {

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