SetMessageProcessor mp = (SetMessageProcessor) buildMp();
mp.setPayload(EXP);
mp.setInboundProperties(properties(INBOUND_KEY, INBOUND_VALUE));
mp.setOutboundProperties(properties(OUTBOUND_KEY, OUTBOUND_VALUE));
mp.setInvocationProperties(properties(INVOCATION_KEY, INVOCATION_VALUE));
MuleMessage mm = new DefaultMuleMessage("aMessage", muleContext);
when(expressionManager.evaluate(EXP, mm)).thenReturn(PAYLOAD);
when(expressionManager.parse(OUTBOUND_VALUE, mm)).thenReturn(OUTBOUND_VALUE);
when(expressionManager.parse(INBOUND_VALUE, mm)).thenReturn(INBOUND_VALUE);
when(expressionManager.parse(INVOCATION_VALUE, mm)).thenReturn(INVOCATION_VALUE);
mp.doProcess(mm, module);
assertEquals(PAYLOAD, mm.getPayload());
assertEquals(INBOUND_VALUE, mm.getInboundProperty(INBOUND_KEY));
assertEquals(INVOCATION_VALUE, mm.getInvocationProperty(INVOCATION_KEY));
assertEquals(OUTBOUND_VALUE, mm.getOutboundProperty(OUTBOUND_KEY));
}