### Question:
PrivateMessage extends Entity { public boolean isReplyAllowed(){ return status.equals(PrivateMessageStatus.SENT) || status.equals(PrivateMessageStatus.DELETED_FROM_OUTBOX); } 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 = "status-provider") public void testIsReplyAllowed(PrivateMessageStatus status, boolean expectedResult) { pm.setStatus(status); assertEquals(expectedResult, pm.isReplyAllowed()); }