*/
public void testChildEvents() {
DefaultValidationResultsModel childModel = new DefaultValidationResultsModel();
vrm.add(childModel);
childModel.addMessage(new DefaultValidationMessage("childProperty1", Severity.ERROR, "childErrorMessage1"));
childModel.addMessage(new DefaultValidationMessage("childProperty1", Severity.WARNING, "childWarningMessage1"));
childModel.addMessage(new DefaultValidationMessage("childProperty1", Severity.INFO, "childInfoMessage1"));
assertEquals("Child added errorMessage, warningMessage and InfoMessage.", 3, listener.eventCount());
assertEquals("ChildModel added ErrorMessage.", 1, errorsListener.eventCount());
assertEquals("ChildModel added WarningMessage.", 1, warnListener.eventCount());
assertEquals("ChildModel added InfoMessage.", 1, infoListener.eventCount());
assertEquals("ChildModel added ErrorMessage.", Boolean.TRUE, errorsListener.lastEvent().getNewValue());