1
2
3
4
5
6
7
8
9
10
11 package org.mule.test.integration.message;
12
13 import org.mule.api.MuleMessage;
14 import org.mule.module.client.MuleClient;
15 import org.mule.tck.FunctionalTestCase;
16 import org.mule.tck.NonSerializableObject;
17
18
19
20
21 public class SessionPropertyChainingRouterTestCase extends FunctionalTestCase
22 {
23 @Override
24 protected String getConfigResources()
25 {
26 return "org/mule/test/integration/messaging/session-property-chaining-router.xml";
27 }
28
29 public void testRouter() throws Exception
30 {
31 MuleClient client = new MuleClient(muleContext);
32 MuleMessage response = client.send("vm://in", "test message", null);
33 assertNotNull(response);
34 assertTrue("Response is " + response.getPayload(), response.getPayload() instanceof NonSerializableObject);
35 }
36 }
37
38