@Test
void shouldHandleOverflow()
{

    int arrayLength = 10;
    RoundRobinArrayIndex roundRobinIndex = new RoundRobinArrayIndex( Integer.MAX_VALUE - 1 );
    assertEquals( (Integer.MAX_VALUE - 1) % arrayLength, roundRobinIndex.next( arrayLength ) );
    assertEquals( Integer.MAX_VALUE % arrayLength, roundRobinIndex.next( arrayLength ) );
    assertEquals( 0, roundRobinIndex.next( arrayLength ) );
    assertEquals( 1, roundRobinIndex.next( arrayLength ) );
    assertEquals( 2, roundRobinIndex.next( arrayLength ) );
}