eb.send(ADDRESS1, str, new DeliveryOptions().setSendTimeout(timeout), (AsyncResult<Message<Integer>> ar) -> {
assertFalse(ar.succeeded());
Throwable cause = ar.cause();
assertTrue(cause instanceof ReplyException);
ReplyException re = (ReplyException) cause;
assertEquals(failureCode, re.failureCode());
assertEquals(failureMsg, re.getMessage());
assertEquals(ReplyFailure.RECIPIENT_FAILURE, re.failureType());
testComplete();
});
await();