when(p2.supports(any(Message.class))).thenReturn(true);
Processor p3 = mock(Processor.class);
when(p3.supports(any(Message.class))).thenReturn(true);
RoundRobinProcessor processor = new RoundRobinProcessor()
.addProcessor(p1)
.addProcessor(p2)
.addProcessor(p3);
processor.process(new Message());
verify(p2).process(any(Message.class));
verify(p3, never()).process(any(Message.class));
processor.process(new Message());
verify(p2).process(any(Message.class));
verify(p3).process(any(Message.class));
}