}
@Test
public void testErrorListener() throws InterruptedException {
final AtomicBoolean fired = new AtomicBoolean();
ErrorListener listener = new ErrorListener() {
@Override
public void notify(Exchange ex, Throwable e) {
fired.compareAndSet(false, true);
}
};