message.setProperty("key", "value", PropertyScope.SESSION);
message.setProperty("key2", "value2", PropertyScope.SESSION);
MessageDispatcher dispatcher = new VMMessageDispatcher(muleContext.getEndpointFactory()
.getOutboundEndpoint("addSessionPropertiesFlowEndpoint"));
MuleEvent result = dispatcher.process(event);
assertNotNull(result);
assertNotSame(event, result);
assertEquals("val", result.getSession().getProperty("keyNonSerializable"));
assertEquals(nonSerializable, result.getSession().getProperty("keyNonSerializable2"));