list.add("item1");
list.add("item4");
list.add("item1");
assertEquals(5, list.lastIndexOf("item1"));
assertNotEquals(0, list.lastIndexOf("item1"));
assertNotEquals(3, list.lastIndexOf("item1"));
}
@Test(expected = NullPointerException.class)
public void testLastIndexOf_whenObjectNull() {