### Question:
JmsDefaultRedeliveryPolicy implements JmsRedeliveryPolicy { public void setOutcome(int outcome) { this.outcome = OUTCOME.getMappedOutcome(outcome).getOutcomeOrdinal(); } 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(expected = IllegalArgumentException.class) public void testSetOutcomeWithInvalidIntValue() { JmsDefaultRedeliveryPolicy policy = new JmsDefaultRedeliveryPolicy(); policy.setOutcome(100); }
@Test(expected = IllegalArgumentException.class) public void testSetOutcomeWithInvaliStringValue() { JmsDefaultRedeliveryPolicy policy = new JmsDefaultRedeliveryPolicy(); policy.setOutcome("FOO"); }