@Test
public void testArgumentValidation() throws Exception {
assertNullPointerException(() -> eb.send(null, ""));
assertNullPointerException(() -> eb.send(null, "", handler -> {}));
assertNullPointerException(() -> eb.send(null, "", new DeliveryOptions()));
assertNullPointerException(() -> eb.send("", "", (DeliveryOptions) null));
assertNullPointerException(() -> eb.send(null, "", new DeliveryOptions(), handler -> {}));
assertNullPointerException(() -> eb.send("", "", null, handler -> {}));
assertNullPointerException(() -> eb.publish(null, ""));
assertNullPointerException(() -> eb.publish(null, "", new DeliveryOptions()));
assertNullPointerException(() -> eb.publish("", "", null));
assertNullPointerException(() -> eb.consumer(null));
assertNullPointerException(() -> eb.consumer(null, msg -> {}));
assertNullPointerException(() -> eb.consumer(ADDRESS1, null));
assertNullPointerException(() -> eb.localConsumer(null));
assertNullPointerException(() -> eb.localConsumer(null, msg -> {}));
assertNullPointerException(() -> eb.localConsumer(ADDRESS1, null));
assertNullPointerException(() -> eb.sender(null));
assertNullPointerException(() -> eb.sender(null, new DeliveryOptions()));
assertNullPointerException(() -> eb.publisher("", null));
assertNullPointerException(() -> eb.publisher(null, new DeliveryOptions()));
assertNullPointerException(() -> eb.registerCodec(null));
assertNullPointerException(() -> eb.unregisterCodec(null));
assertNullPointerException(() -> eb.registerDefaultCodec(null, new MyPOJOEncoder1()));
assertNullPointerException(() -> eb.registerDefaultCodec(Object.class, null));
assertNullPointerException(() -> eb.unregisterDefaultCodec(null));