props.put("MyMediator", prop);
MessageContext mc = TestUtils.getTestContext("<foo/>", props);
ScriptMediatorFactory mf = new ScriptMediatorFactory();
Mediator mediator = mf.createMediator(REG_PROP_MEDIATOR_CONFIG);
assertTrue(mediator.mediate(mc));
}
public void testRegPropWithFunctionMediatorFactory() throws Exception {
Property prop = new Property();
prop.setValue(MY_MEDIATOR_FOO_FUNC);