@Test
public void testRemoveAllWithPredicate()
{
list.add(newArray(list.buffer, 0, key1, key2, key1, 4));
assertEquals(3, list.removeAll(new ShortPredicate()
{
public boolean apply(/* replaceIf:applied. */ short /* end */ v)
{
return v == key1 || v == key2;
};