    @Test
    public void testSingleIndexOf() throws Exception {

        int indexOf = CollectionHelper.singleIndexOf(Arrays.asList(1, 5, 3, 7, 9, 5), new Predicate<Integer>() {
            @Override public boolean apply(Integer object) {
                return object == 3;
            }
        });

        assertEquals(2, indexOf);
    }