1
2
3
4
5
6
7
8
9
10
11 package org.mule.transport.jms.integration;
12
13 import org.mule.api.MuleException;
14 import org.mule.api.MuleMessage;
15 import org.mule.module.client.MuleClient;
16
17 import java.util.HashMap;
18 import java.util.Map;
19
20 import org.junit.Test;
21
22 public class JmsCustomCorrelationIdTestCase extends AbstractJmsFunctionalTestCase
23 {
24
25 protected String getConfigResources()
26 {
27 return "integration/jms-custom-correlation.xml";
28 }
29
30 @Test
31 public void testExplicitReplyToAsyncSet() throws MuleException
32 {
33 MuleClient muleClient = new MuleClient(muleContext);
34 Map props = new HashMap();
35 props.put("customCorrelation", "abcdefghij");
36 MuleMessage response = muleClient.send("vm://in4", TEST_MESSAGE, props);
37
38 assertEquals(TEST_MESSAGE + " TestService1", response.getPayload());
39
40 }
41 }