### Question:
GHIntArrayList extends IntArrayList { public final GHIntArrayList reverse() { final int[] buffer = this.buffer; int tmp; for (int start = 0, end = size() - 1; start < end; start++, end--) { tmp = buffer[start]; buffer[start] = buffer[end]; buffer[end] = tmp; } return this; } GHIntArrayList();  GHIntArrayList(int capacity);  GHIntArrayList(GHIntArrayList list); final GHIntArrayList reverse(); final GHIntArrayList fill(final int max, final int value); final GHIntArrayList shuffle(Random random); static GHIntArrayList from(int... elements);  }### Answer:
@Test public void testReverse() { assertEquals(GHIntArrayList.from(4, 3, 2, 1), GHIntArrayList.from(1, 2, 3, 4).reverse()); assertEquals(GHIntArrayList.from(5, 4, 3, 2, 1), GHIntArrayList.from(1, 2, 3, 4, 5).reverse()); }