### Question:
PublisherRestriction { @Override public int hashCode() { return Objects.hash(purposeId, restrictionType, vendorIds); } PublisherRestriction(
            int purposeId, RestrictionType restrictionType, IntIterable vendorIds); int getPurposeId(); RestrictionType getRestrictionType(); IntIterable getVendorIds(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testHash() { PublisherRestriction pub1 = new PublisherRestriction(1, RestrictionType.NOT_ALLOWED, BitSetIntIterable.from(1, 2)); PublisherRestriction pub2 = new PublisherRestriction(1, RestrictionType.NOT_ALLOWED, BitSetIntIterable.from(1, 2)); assertEquals(pub1.hashCode(), pub2.hashCode()); }