@Test(expected = IndexOutOfBoundsException.class)
public void updateIfMatchShouldFailOnNegativeIndex() {

   ObjIntIntArrayList<Integer> list = new ObjIntIntArrayList<>(0);
   list.addToIntsIfMatch(-1, 1, 1, 1);
}