// set dummy mediator to be called on fail
validate.removeChild(0);
validate.addChild(testMediator);
Map props = new HashMap();
Property prop = new Property();
prop.setType(Property.DYNAMIC_TYPE);
prop.setKey("file:./../../repository/conf/sample/resources/validate/validate.xsd");
props.put("xsd-key-1", prop);
// test validate mediator, with static enveope
validate.mediate(TestUtils.getTestContext(VALID_ENVELOPE, props));