public Object answer() throws Throwable {
DomXmlMessageValidator validator = new DomXmlMessageValidator();
XmlMessageValidationContext validationContext = new XmlMessageValidationContext();
validationContext.setControlMessage(new DefaultMessage(""));
validator.validateMessage(((Message)EasyMock.getCurrentArguments()[0]), context, validationContext);
return null;
}
}).once();
expect(endpoint.getActor()).andReturn(null).anyTimes();