@Test
public void checkLimits() {

    List<LimitViolation> violations = Security.checkLimits(network);
    assertEquals(5, violations.size());
    assertViolations(violations);
    violations = Security.checkLimits(network, 1);
    assertViolations(violations);
}