tri2.get(3); fail("get(3) should have thrown IllegalArgumentException."); } catch (final IllegalArgumentException e) { tri2.get(-1); fail("get(-1) should have thrown IllegalArgumentException."); } catch (final IllegalArgumentException e) { assertEquals(Vector3.UNIT_X, tri2.get(0)); assertEquals(Vector3.UNIT_Y, tri2.get(1)); assertEquals(Vector3.UNIT_Z, tri2.get(2));