public static <T> boolean equalUnorderedCollections(
            Collection<T> colA, Collection<T> colB) {
        return equalUnorderedCollections(colA, colB, new CrossTypeComparator<T, T>() {

            @Override
            public boolean equals(T a, T b) {
                return (a == null && b == null)
                        || a.equals(b);
            }

        });
    }
Compares two unordered lists of the same type.
aws-java-sdk-test-utils/src/main/java/com/amazonaws/test/util/UnorderedCollectionComparator.java