Phase p = new Phase(Phase.PRE_LOGICAL, 1);
SortedSet<Phase> phases = new TreeSet<Phase>();
phases.add(p);
PhaseInterceptorChain chain =
new PhaseInterceptorChain(phases);
MAPAggregator map = new MAPAggregator();
RMOutInterceptor rmi = new RMOutInterceptor();
chain.add(rmi);
chain.add(map);
Iterator<Interceptor<? extends Message>> it = chain.iterator();
assertSame("Unexpected order.", map, it.next());