/**
* Tests that passing a negative to get throws appropriate exception.
*/
@Test(expected = IndexOutOfBoundsException.class)
public void testGetNegative() {
LongArrayList list = new LongArrayList(10);
list.add(0);
list.add(1);
list.add(2);
list.get(-1);
}