### Question:
JmsDefaultDeserializationPolicy implements JmsDeserializationPolicy { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((allowList == null) ? 0 : allowList.hashCode()); result = prime * result + ((denyList == null) ? 0 : denyList.hashCode()); return result; } JmsDefaultDeserializationPolicy();  JmsDefaultDeserializationPolicy(JmsDefaultDeserializationPolicy source); @Override JmsDeserializationPolicy copy(); @Override boolean isTrustedType(JmsDestination destination, Class<?> clazz); @Deprecated String getWhiteList(); String getAllowList(); @Deprecated String getBlackList(); String getDenyList(); @Deprecated void setWhiteList(String allowList); void setAllowList(String allowList); @Deprecated void setBlackList(String denyList); void setDenyList(String denyList); @Override int hashCode(); @Override boolean equals(Object obj); static final String CATCH_ALL_WILDCARD; @Deprecated
    static final String DEPRECATED_ALLOWLIST_PROPERTY; @Deprecated
    static final String DEPRECATED_DENYLIST_PROPERTY; static final String ALLOWLIST_PROPERTY; static final String DENYLIST_PROPERTY; }### Answer:
@Test public void testHashCode() { JmsDeserializationPolicy policy1 = new JmsDefaultDeserializationPolicy(); JmsDeserializationPolicy policy2 = new JmsDefaultDeserializationPolicy(); assertTrue(policy1.hashCode() != 0); assertEquals(policy1.hashCode(), policy2.hashCode()); assertEquals(policy2.hashCode(), policy1.hashCode()); ((JmsDefaultDeserializationPolicy) policy1).setAllowList("java.util"); assertFalse(policy1.hashCode() == policy2.hashCode()); assertFalse(policy2.hashCode() == policy1.hashCode()); ((JmsDefaultDeserializationPolicy) policy2).setAllowList("java.util"); assertTrue(policy1.hashCode() == policy2.hashCode()); assertTrue(policy2.hashCode() == policy1.hashCode()); ((JmsDefaultDeserializationPolicy) policy1).setDenyList("java.util"); assertFalse(policy1.hashCode() == policy2.hashCode()); assertFalse(policy2.hashCode() == policy1.hashCode()); ((JmsDefaultDeserializationPolicy) policy2).setDenyList("java.util"); assertTrue(policy1.hashCode() == policy2.hashCode()); assertTrue(policy2.hashCode() == policy1.hashCode()); }