@Test(expectedExceptions=ObjectNotFoundException.class)
public void shouldFailToUpdateNonExistentId() throws Exception {
MessageHandler handler = mock(MessageHandler.class);
when(handler.supportsDirection(any(Direction.class))).thenReturn(true);
when(handler.updateMessage(any(Connection.class), any(Message.class)))
.thenReturn(false);
DataSource dataSource = mockDataSource();
JdbcMessageStore messageStore = createMessageStore(dataSource, handler);