### Question:
JmsDefaultRedeliveryPolicy implements JmsRedeliveryPolicy { @Override public JmsDefaultRedeliveryPolicy copy() { return new JmsDefaultRedeliveryPolicy(this); } JmsDefaultRedeliveryPolicy();  JmsDefaultRedeliveryPolicy(JmsDefaultRedeliveryPolicy source); @Override JmsDefaultRedeliveryPolicy copy(); @Override int getMaxRedeliveries(JmsDestination destination); @Override int getOutcome(JmsDestination destination); int getOutcome(); void setOutcome(int outcome); void setOutcome(String outcome); int getMaxRedeliveries(); void setMaxRedeliveries(int maxRedeliveries); @Override int hashCode(); @Override boolean equals(Object obj); static final int DEFAULT_MAX_REDELIVERIES; static final int DEFAULT_OUTCOME; }### Answer:
@Test public void testCopy() { JmsDefaultRedeliveryPolicy policy = new JmsDefaultRedeliveryPolicy(); policy.setOutcome(JmsMessageSupport.ACCEPTED); policy.setMaxRedeliveries(1000); JmsDefaultRedeliveryPolicy clone = policy.copy(); assertEquals(JmsMessageSupport.ACCEPTED, clone.getOutcome()); assertEquals(1000, clone.getMaxRedeliveries()); }