### Question:
DecisionQueue implements Serializable { public synchronized void reassign( final Decision decision, final Principal owner ) throws WikiException { if( decision.isReassignable() ) { decision.reassign( owner ); WikiEventEmitter.fireWorkflowEvent( decision, WorkflowEvent.DQ_REASSIGN ); return; } throw new IllegalStateException( "Reassignments not allowed for this decision." ); } DecisionQueue(); Collection<Decision> getActorDecisions( final Session session ); void decide( final Decision decision, final Outcome outcome, final Context context ); synchronized void reassign( final Decision decision, final Principal owner );  }### Answer:
@Test public void testReassign() throws WikiException { Assertions.assertEquals(janneSession.getUserPrincipal(), d3.getActor()); Assertions.assertEquals(1, m_queue.getActorDecisions(janneSession).size()); m_queue.reassign(d3, new WikiPrincipal("NewOwner")); Assertions.assertEquals(new WikiPrincipal("NewOwner"), d3.getActor()); Assertions.assertEquals(0, m_queue.getActorDecisions(janneSession).size()); }