### Question:
Outcome implements Serializable { public String getMessageKey() { return m_key; } private  Outcome( final String key, final boolean completion ); boolean isCompletion(); String getMessageKey(); int hashCode(); boolean equals( final Object obj ); static Outcome forName( final String key ); String toString(); static final Outcome STEP_COMPLETE; static final Outcome STEP_ABORT; static final Outcome STEP_CONTINUE; static final Outcome DECISION_ACKNOWLEDGE; static final Outcome DECISION_APPROVE; static final Outcome DECISION_DENY; static final Outcome DECISION_HOLD; static final Outcome DECISION_REASSIGN; }### Answer:
@Test public void testGetKey() { Assertions.assertEquals( "outcome.decision.approve", Outcome.DECISION_APPROVE.getMessageKey() ); Assertions.assertEquals( "outcome.decision.hold", Outcome.DECISION_HOLD.getMessageKey() ); Assertions.assertEquals( "outcome.decision.deny", Outcome.DECISION_DENY.getMessageKey() ); Assertions.assertEquals( "outcome.decision.reassign", Outcome.DECISION_REASSIGN.getMessageKey() ); }
@Test public void testMessage() { final WikiEngine engine = TestEngine.build(); final InternationalizationManager i18n = engine.getManager( InternationalizationManager.class ); final String core = "templates.default"; final Locale rootLocale = Locale.ROOT; Outcome o; o = Outcome.DECISION_APPROVE; Assertions.assertEquals("Approve", i18n.get(core, rootLocale, o.getMessageKey())); o = Outcome.DECISION_DENY; Assertions.assertEquals("Deny", i18n.get(core, rootLocale, o.getMessageKey())); o = Outcome.DECISION_HOLD; Assertions.assertEquals("Hold", i18n.get(core, rootLocale, o.getMessageKey())); o = Outcome.DECISION_REASSIGN; Assertions.assertEquals("Reassign", i18n.get(core, rootLocale, o.getMessageKey())); }