@Test
public void smokeTest() {
assertNotNull(messageRepository);
// create
Message message = new Message();
message.setText("Test message");
messageRepository.create(message);
// read
Collection<Message> messages = messageRepository.getAll();
assertNotNull(messages);
assertEquals(1, messages.size());
Message storedMessage = messages.iterator().next();
assertNotNull(storedMessage.getId());
assertEquals(message.getText(), storedMessage.getText());
// delete
messageRepository.deleteById(storedMessage.getId());
messages = messageRepository.getAll();
assertEquals(0, messages.size());
}