private static List<String> callOrder = new ArrayList<String>();
@Test
public void shouldExecuteProducersOnSameEventBeforeConsumers() throws Exception
{
Manager manager = ManagerBuilder.from()
.extensions(ConsumerOne.class, ProducerOne.class, ProducerTwo.class).create();
manager.fire("test");
Assert.assertEquals("ProducerOne", callOrder.get(0));
Assert.assertEquals("ProducerTwo", callOrder.get(1));
Assert.assertEquals("ConsumerOne", callOrder.get(2));
}