assertEquals(Arrays.<EventMessage>asList(message2), ackedMessages);
}
@Test
public void testOrderingOfListeners() {
testSubject = new AsynchronousCluster("async", new DirectExecutor(),
new DefaultUnitOfWorkFactory(mockTransactionManager),
new SequentialPolicy(), new DefaultErrorHandler(RetryPolicy.proceed()),
new OrderResolver() {
@Override
public int orderOf(EventListener listener) {