public void testStepByTwo(){
  final Range range=createRange(1,5);
  final List result=range.step(2);
  assertEquals("wrong number of calls",3,result.size());
  final Iterator iter=result.iterator();
  for (int i=1; i <= 5; i+=2) {
    assertEquals("incorrect value in result",createValue(i),iter.next());
  }
}

public void testStepByTwo ( ) { final Range range = createRange ( 1 , 5 ) ; final List result = range . step ( 2 ) ; assertEquals ( "wrong number of calls" , 3 , result . size ( ) ) ; final Iterator iter = result . iterator ( ) ; for ( int i = 1 ; i <= 5 ; i += 2 ) { assertEquals ( "incorrect value in result" , createValue ( i ) , iter . next ( ) ) ; } }
tests stepping through a range by two .
