diff --git a/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java b/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java index e1c2f206a..a8c578697 100644 --- a/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java @@ -54,6 +54,8 @@ import org.apache.commons.collections4.collection.SynchronizedCollection; import org.apache.commons.collections4.collection.TransformedCollection; import org.apache.commons.collections4.collection.UnmodifiableCollection; import org.apache.commons.collections4.functors.DefaultEquator; +import org.apache.commons.collections4.functors.InstanceofPredicate; +import org.apache.commons.collections4.functors.UniquePredicate; import org.apache.commons.collections4.queue.CircularFifoQueue; import org.apache.commons.lang3.ArrayUtils; import org.junit.jupiter.api.BeforeEach; @@ -1942,6 +1944,15 @@ public class CollectionUtilsTest extends MockTestCase { assertEquals(2, output2.iterator().next()); } + @Test + public void testSelect_Iterable_Predicate_Collection_JiraCollections864() { + final UniquePredicate uniquePredicate0 = new UniquePredicate<>(); + final LinkedList linkedList0 = new LinkedList<>(); + final Class class0 = InstanceofPredicate.class; + final InstanceofPredicate instanceofPredicate0 = new InstanceofPredicate(class0); + CollectionUtils.select((Iterable) linkedList0, (Predicate) uniquePredicate0, linkedList0); + } + @Test public void testSelectRejected() { final List list = new ArrayList<>();