@Test
public void onScroll_withZigZagZigZagZigZagZig_BeforeNextZagCompletes_MovesOutOfUpperYBounds_shouldSetStateToFailed() throws Exception {

    performZigZag();
    performZigZag();
    performZigZag();
    performZig();
    simulateScroll(savedX, INITIAL_Y + 49);
    assertZigZagState(GOING_RIGHT);
    assertThat(subject.getNumberOfZigzags()).isEqualTo(3);
    simulateScroll(savedX, INITIAL_Y + 51);
    assertZigZagState(FAILED);
}