verify(handler).listMessages(any(Connection.class), any(MessageCriteria.class));
}
@Test
public void testListWithNotSupportedDirectionCriteria() throws Exception {
MessageHandler handler = mock(MessageHandler.class);
when(handler.supportsDirection(any(Direction.class))).thenReturn(false);
DataSource dataSource = mockDataSource();
JdbcMessageStore messageStore = createMessageStore(dataSource, handler);
MessageCriteria criteria = new MessageCriteria()