### Question:
JmsDefaultPrefetchPolicy implements JmsPrefetchPolicy { public int getMaxPrefetchSize() { return maxPrefetchSize; } 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 testGetMaxPrefetchSize() { JmsDefaultPrefetchPolicy policy = new JmsDefaultPrefetchPolicy(); assertEquals(JmsDefaultPrefetchPolicy.MAX_PREFETCH_SIZE, policy.getMaxPrefetchSize()); policy.setMaxPrefetchSize(10); assertEquals(10, policy.getMaxPrefetchSize()); }