private boolean dominates(BitSet bs1, BitSet bs2) {
    // bs1 dominates bs2 if it has set at least all of the bits in bs1.
    BitSet copy = new BitSet();
    // Make copy a copy of bit set 2
    copy.or(bs2);

    // Clear all of the bits in copy that are set in bit set 1
    copy.andNot(bs1);

    // If all of the bits have been cleared in copy, that means
    // bit set 1 had at least all of the bits set that were set in
    // bs2
    return copy.isEmpty();

  }
Return true if bs1 dominates bs2 - meaning that at least all of the bits set in bs2 are set in
bs1.
geode-core/src/test/java/org/apache/geode/internal/cache/versions/RegionVersionHolderJUnitTest.java