System.out.println("test message");
String tgtMsg1 = "**msg1**";
String tgtMsg2 = "**msg1**";
String tgtMsg3 = "msg1";
Message msg1 = new Message(tgtMsg1);
Message msg2 = new Message(tgtMsg2);
Message msg3 = new Message(tgtMsg3);
assertTrue("message should be different with null", !msg1.equals(null));
assertTrue("message should be different with different object",
!msg1.equals(""));
assertTrue("message should be same to itself", msg1.equals(msg1));
assertTrue("message should be same to another similar message",
msg1.equals(msg2));
assertTrue("message should'nt be same to another different message",
!msg1.equals(msg3));
assertTrue("message should be same to another similar message", msg1
.getHtmlFormat().equals(msg2.getHtmlFormat()));
assertTrue("message should'nt be same to another different message",
!msg1.getHtmlFormat().equals(msg3.getHtmlFormat()));
assertEquals("message should be same", msg1.getText(), tgtMsg1);
System.out.println("test message");
}