Hello I need to pass the unit test the condition is to generate Integers in range from arg0 to arg2 . here is my attempt to solved
			public IntegerGenerator createIntegerGenerator(int arg0, int arg1) {

			IntegerGenerator generator = new IntegerGenerator() {

					public Integer getNext() {
						int i = arg0;
						for (; i < arg1; i++) {
						return i;
				return generator;
but it faille
Expected [1,2,3,4,5,6,7,8,9,10,null]
but was [10,10,10,10,10,10,10,10,10]
maybe somebody could suggest how to solve this issue?