@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) {
if (listener instanceof EventListenerProxy) {
return ((EventListenerProxy) listener).getTargetType().getSuperclass()
.getAnnotation(Order.class).value();