@SuppressWarnings("checkstyle:trailingcomment")
    public long footprint() {
        return
                INT_SIZE_IN_BYTES * hashes.length // size of hashes array
                + REFERENCE_COST_IN_BYTES * table.length // size of table array
                + REFERENCE_COST_IN_BYTES // reference to hashes array
                + REFERENCE_COST_IN_BYTES // reference to table array
                + FLOAT_SIZE_IN_BYTES // loadFactor
                + INT_SIZE_IN_BYTES // resizeThreshold
                + INT_SIZE_IN_BYTES // capacity
                + INT_SIZE_IN_BYTES // mask
                + INT_SIZE_IN_BYTES // size
                + INT_SIZE_IN_BYTES; // version
    }
@Test
    public void testFootprintReflectsCapacityIncrease() {
        final OAHashSet<Integer> set = new OAHashSet<>(8);
        final long originalFootprint = set.footprint();

        populateSet(set, 10);

        final long footprintAfterCapacityIncrease = set.footprint();
        assertTrue(footprintAfterCapacityIncrease > originalFootprint);
    }