KeyValuePairList extends KeyValuePairBag implements List<KeyValuePair> { public int indexOf(Object o) { return getKeyValuePairs().indexOf(o); } KeyValuePairList();  KeyValuePairList(Collection<KeyValuePair> pairs);  KeyValuePairList(Properties properties);  KeyValuePairList(Map<String, String> map); @Override List<KeyValuePair> getKeyValuePairs(); @Override void addKeyValuePair(KeyValuePair pair); void add(int index, KeyValuePair element); boolean addAll(int index, Collection<? extends KeyValuePair> c); KeyValuePair get(int index); int indexOf(Object o); int lastIndexOf(Object o); ListIterator<KeyValuePair> listIterator(); ListIterator<KeyValuePair> listIterator(int index); KeyValuePair remove(int index); KeyValuePair set(int index, KeyValuePair element); List<KeyValuePair> subList(int fromIndex, int toIndex);  }
@Test public void testIndexOf() { KeyValuePairList list = createWithEntries(); assertEquals(1, list.indexOf(new KeyValuePair(KEY2, VALUE2))); }