### Question:
UpdatePropagationLatch { public void turnOff() { state = State.NEUTRAL; } UpdatePropagationLatch(); void turnOn(); void turnOff(); boolean tryToPass();  }### Answer:
@Test public void givenLatchIsOff_whenTryToPass_thenAllAreSuccessful() { latch.turnOff(); assertAllTryToPassAttemptsAreSuccessful(anyNumAttempts()); }