@Override
    public Object[] toArray() {
        List<Object> result = new ArrayList<>();
        for (M member : members) {
            if (selector.select(member)) {
                result.add(member);
            }
        }
        return result.toArray(new Object[0]);
    }
@Test
    public void testToArrayWhenLiteMembersFilteredAndNoLocalMember3() {
        Collection<MemberImpl> collection = new MemberSelectingCollection<>(members,
                and(LITE_MEMBER_SELECTOR, NON_LOCAL_MEMBER_SELECTOR));
        Object[] array = new Object[0];
        array = collection.toArray(array);

        assertArray(collection, array);
    }