/**
* Test random severity message sequence. (first error, then warning and then info)
*/
public void testRandomSeverityMessageSequence() {
ValidationMessage error1 = new TimeSpecifiedValidationMessage("error1", Severity.ERROR, "error1", 1);
defaultValidationResultsModel.addMessage(error1);
ValidationMessage warning1 = new TimeSpecifiedValidationMessage("warning1", Severity.WARNING, "warning1", 2);
defaultValidationResultsModel.addMessage(warning1);
assertEquals(error1, messagable.getMessage());
ValidationMessage info1 = new TimeSpecifiedValidationMessage("info1", Severity.INFO, "info1", 3);
defaultValidationResultsModel.addMessage(info1);
assertEquals(error1, messagable.getMessage());
ValidationMessage error2 = new TimeSpecifiedValidationMessage("error2", Severity.ERROR, "error2", 4);
defaultValidationResultsModel.addMessage(error2);
assertEquals(error2, messagable.getMessage());
defaultValidationResultsModel.removeMessage(error2);
assertEquals(error1, messagable.getMessage());