public void testAddressingProcessor() throws Exception {
SynapseEnvironment env = new Axis2SynapseEnvironment(
Axis2EnvSetup.getSynapseConfigElement(synapsexml),
Thread.currentThread().getContextClassLoader());
SynapseMessage smc = new Axis2SynapseMessage(msgCtx);
env.injectMessage(smc);
assertTrue(((Boolean) smc.getProperty(
Constants.MEDIATOR_RESPONSE_PROPERTY)).booleanValue());
assertEquals("add",env.lookupProcessor("add").getName());
}