### Question:
JmsDefaultPrefetchPolicy implements JmsPrefetchPolicy { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + durableTopicPrefetch; result = prime * result + maxPrefetchSize; result = prime * result + queueBrowserPrefetch; result = prime * result + queuePrefetch; result = prime * result + topicPrefetch; return result; } JmsDefaultPrefetchPolicy();  JmsDefaultPrefetchPolicy(JmsDefaultPrefetchPolicy source); @Override JmsDefaultPrefetchPolicy copy(); @Override int getConfiguredPrefetch(JmsSession session, JmsDestination destination, boolean durable, boolean browser); int getDurableTopicPrefetch(); void setDurableTopicPrefetch(int durableTopicPrefetch); int getQueuePrefetch(); void setQueuePrefetch(int queuePrefetch); int getQueueBrowserPrefetch(); void setQueueBrowserPrefetch(int queueBrowserPrefetch); int getTopicPrefetch(); void setTopicPrefetch(int topicPrefetch); int getMaxPrefetchSize(); void setMaxPrefetchSize(int maxPrefetchSize); void setAll(int prefetch); @Override int hashCode(); @Override boolean equals(Object obj); static final int MAX_PREFETCH_SIZE; static final int DEFAULT_QUEUE_PREFETCH; static final int DEFAULT_QUEUE_BROWSER_PREFETCH; static final int DEFAULT_DURABLE_TOPIC_PREFETCH; static final int DEFAULT_TOPIC_PREFETCH; }### Answer:
@Test public void testHashCode() { JmsPrefetchPolicy policy1 = new JmsDefaultPrefetchPolicy(); JmsPrefetchPolicy policy2 = new JmsDefaultPrefetchPolicy(); assertTrue(policy1.hashCode() != 0); assertEquals(policy1.hashCode(), policy1.hashCode()); assertEquals(policy2.hashCode(), policy2.hashCode()); }