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