### Question:
DecisionQueue implements Serializable { public Collection<Decision> getActorDecisions( final Session session ) { final ArrayList< Decision > decisions = new ArrayList<>(); if( session.isAuthenticated() ) { final Principal[] principals = session.getPrincipals(); final Principal[] rolePrincipals = session.getRoles(); for( final Decision decision : m_queue ) { for( final Principal principal : principals ) { if( principal.equals( decision.getActor() ) ) { decisions.add( decision ); } } for( final Principal principal : rolePrincipals ) { if( principal.equals( decision.getActor() ) ) { decisions.add( decision ); } } } } return decisions; } 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 testActorDecisions() { Collection< Decision > decisions = m_queue.getActorDecisions(adminSession); Assertions.assertEquals(1, decisions.size()); decisions = m_queue.getActorDecisions(janneSession); Assertions.assertEquals(1, decisions.size()); }