@Test
public void checkNetworkBuses() throws IOException {

    Network.BusView networkBusView = Mockito.mock(Network.BusView.class);
    Mockito.when(networkBusView.getBusStream()).thenAnswer(dummy -> Stream.of(bus));
    Network network = Mockito.mock(Network.class);
    Mockito.when(network.getId()).thenReturn("network");
    Mockito.when(network.getBusView()).thenReturn(networkBusView);
    assertTrue(BusesValidation.INSTANCE.checkBuses(network, looseConfig, data));
    assertFalse(BusesValidation.INSTANCE.checkBuses(network, strictConfig, data));
    assertTrue(ValidationType.BUSES.check(network, looseConfig, tmpDir));
    assertFalse(ValidationType.BUSES.check(network, strictConfig, tmpDir));
    ValidationWriter validationWriter = ValidationUtils.createValidationWriter(network.getId(), looseConfig, NullWriter.NULL_WRITER, ValidationType.BUSES);
    assertTrue(ValidationType.BUSES.check(network, looseConfig, validationWriter));
}