@Test
public void checkShunts() {

    // “q” = - bPerSection * currentSectionCount * v^2
    assertTrue(ShuntCompensatorsValidation.INSTANCE.checkShunts(shunt, strictConfig, NullWriter.NULL_WRITER));
    Mockito.when(shuntTerminal.getQ()).thenReturn(171.52);
    assertFalse(ShuntCompensatorsValidation.INSTANCE.checkShunts(shunt, strictConfig, NullWriter.NULL_WRITER));
    // if the shunt is disconnected then either “q” is not defined or “q” is 0
    Mockito.when(shuntBusView.getBus()).thenReturn(null);
    assertFalse(ShuntCompensatorsValidation.INSTANCE.checkShunts(shunt, strictConfig, NullWriter.NULL_WRITER));
    Mockito.when(shuntTerminal.getQ()).thenReturn(Double.NaN);
    assertTrue(ShuntCompensatorsValidation.INSTANCE.checkShunts(shunt, strictConfig, NullWriter.NULL_WRITER));
}