handler.setSqlEngine(new DerbyEngine(dataSource));
MessageCriteria criteria = new MessageCriteria()
.addStatus(Message.STATUS_FAILED);
Collection<Message> messages = handler.listMessages(connection, criteria);
Assert.assertEquals(messages.size(), 3);
}
private int getNumMessagesByStatus(byte status) throws SQLException {