@Test
public void testNeverFullyOpenOrFullyClosed() {

    int openGateCounter = (int) IntStream.range(0, MAX_ITERATIONS).filter(i -> this.throttleGateUnderTest.isOpen()).count();
    String message = "Gate opened " + openGateCounter + "/" + MAX_ITERATIONS + " times " +
            "(expecting at least " + MIN_OPEN_GATES + " and a maximum of " + MAX_OPEN_GATES + ")";
    isBetween(openGateCounter, MIN_OPEN_GATES, MAX_OPEN_GATES, message);
    System.out.println(message); // Show result of test even if it passes - can track progress via build logs
}