HashMap<String, String> messageElements = new HashMap<String, String>();
messageElements.put("root.element.sub-elementA.attribute-wrong", "A");
messageElements.put("sub-elementB.attribute-wrong", "B");
XpathMessageConstructionInterceptor interceptor = new XpathMessageConstructionInterceptor(messageElements);
controlMessageBuilder.add(interceptor);
List<ValidationContext> validationContexts = new ArrayList<ValidationContext>();
validationContexts.add(validationContext);
receiveMessageBean.setValidationContexts(validationContexts);