### Question:
PrivateMessage extends Entity { public String prepareTitleForReply() { return title.startsWith("Re: ") ? getTitle() : "Re: " + getTitle(); } protected  PrivateMessage();  PrivateMessage(JCUser userTo, JCUser userFrom, String title, String body); String getBody(); void setBody(String body); DateTime getCreationDate(); String getTitle(); void setTitle(String title); JCUser getUserFrom(); JCUser getUserTo(); void setUserTo(JCUser userTo); PrivateMessageStatus getStatus(); void setStatus(PrivateMessageStatus status); void setRead(boolean read); boolean isRead(); String prepareTitleForReply(); boolean isReplyAllowed(); static final int MAX_MESSAGE_LENGTH; static final int MIN_MESSAGE_LENGTH; static final int MAX_TITLE_LENGTH; static final int MIN_TITLE_LENGTH; }### Answer:
@Test(dataProvider = "title-provider") public void testPrepareTitleForReply(String title, String expectedReTitle) throws Exception { pm.setTitle(title); String result = pm.prepareTitleForReply(); assertEquals(result, expectedReTitle); }