Message message = this._helper.createMessage(null, null, "it", new Date(), "company", "address", JpwebdynamicformTestHelper.EMAIL, "note");
this._helper.addMessage(message);
String messageId = message.getId();
assertNotNull(this._messageManager.getMessage(messageId));
Answer answer1 = this._helper.createAnswer(null, messageId, "admin", new Date(), "text1");
this._helper.addAnswer(answer1);
Answer answer2 = this._helper.createAnswer(null, messageId, "admin", new Date(), "text2");
this._helper.addAnswer(answer2);
List<Answer> answers = this._messageManager.getAnswers(messageId);
assertEquals(2, answers.size());
this._messageManager.deleteMessage(messageId);