### Question:
ArrayInitializer { static int[] initializeArrayInLoop() { int array[] = new int[5]; for (int i = 0; i < array.length; i++) { array[i] = i + 2; } return array; }    }### Answer:
@Test public void whenInitializeArrayInLoop_thenCorrect() { assertArrayEquals(new int[] { 2, 3, 4, 5, 6 }, initializeArrayInLoop()); }