assertNotNull("Messages are not null", messages);
} catch (final Exception e) {
log.error("Test Failed", e);
fail("Caught exception: " + e.getMessage());
} finally {
client.disconnect();
}
}
/**
* Tests retrieval of messages by keyword as well as chained filtering