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.junit4.FunctionalTestCase;
16 import org.mule.tck.NonSerializableObject;
17
18 import org.junit.Test;
19
20 import static org.junit.Assert.assertNotNull;
21 import static org.junit.Assert.assertTrue;
22
23
24
25
26
27
28
29 public class SessionPropertyChainingRouterTestCase extends FunctionalTestCase
30 {
31 @Override
32 protected String getConfigResources()
33 {
34 return "org/mule/test/integration/messaging/session-property-chaining-router.xml";
35 }
36
37 @Test
38 public void testRouter() throws Exception
39 {
40 MuleClient client = new MuleClient(muleContext);
41 MuleMessage response = client.send("vm://in", "test message", null);
42 assertNotNull(response);
43 assertTrue("Response is " + response.getPayload(), response.getPayload() instanceof NonSerializableObject);
44 }
45 }
46
47