PmMessage { public String getTitle() { return localize(resourceData.getMsgKey(), resourceData.getMsgArgs()); } PmMessage(final PmObject pm, Severity severity, String msgKey, Object... msgArgs);  PmMessage(PmObject pm, Severity severity, Throwable cause, String msgKey, Object... msgArgs);  PmMessage(PmObject pm, Severity severity, PmResourceData msgResourceData); PmObject getPm(); Severity getSeverity(); boolean isMessageFor(PmObject pmToCheck); boolean isError(); boolean isWarning(); boolean isInfo(); String getMsgKey(); Object[] getMsgArgs(); String getTitle(); String getTooltip(); void setCause(Throwable cause); Throwable getCause(); @Override String toString(); void setSeverity(Severity severity);  }
@Test public void testMessageTitle() { PmConversation conversation = new PmConversationImpl(); PmMessage m = PmMessageApi.addMessage(conversation, Severity.ERROR, "pmMessageTest.testmsg", "Message parameter"); assertEquals("A test message with parameter: Message parameter", m.getTitle()); assertTrue(! conversation.isPmValid()); }