@Test
public void onScroll_withZig_butBeforeZagIsComplete_shouldKeepStateGoingLeftButNotIncrementZigZags() throws Exception {

    performZig();
    assertZigZagState(GOING_RIGHT);
    simulateScroll(INITIAL_X + threshold - 5);
    assertZigZagState(GOING_LEFT);
    // we turn back prematurely
    simulateScroll(INITIAL_X + threshold);
    assertZigZagState(GOING_LEFT);
    assertThat(subject.getNumberOfZigzags()).isEqualTo(0);
}