catch (CayenneRuntimeException e) {
// expected
}
try {
new ClientChannel(connection, false, new DefaultEventManager(2), false);
fail("Channel didn't throw on broken EventBridge");
}
catch (CayenneRuntimeException e) {
// expected
}
try {
new ClientChannel(connection, false, new DefaultEventManager(2), true);
}
catch (CayenneRuntimeException e) {
fail("Channel threw on broken EventBridge");
}
}