1   /*
2    * $Id: ReplytoChainIntegration2TestCase.java 11179 2008-03-05 13:46:23Z dfeist $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.test.integration.routing.replyto;
12  
13  import org.mule.api.MuleMessage;
14  import org.mule.api.config.MuleProperties;
15  import org.mule.module.client.MuleClient;
16  import org.mule.tck.FunctionalTestCase;
17  
18  import java.util.HashMap;
19  import java.util.Map;
20  
21  public class ReplytoChainIntegration2TestCase extends FunctionalTestCase
22  {
23  
24      protected String getConfigResources()
25      {
26          return "org/mule/test/integration/routing/replyto/replyto-chain-integration-test-2.xml";
27      }
28  
29      public void testReplyToChain() throws Exception
30      {
31          String message = "test";
32  
33          MuleClient client = new MuleClient();
34          Map props = new HashMap();
35          props.put(MuleProperties.MULE_REMOTE_SYNC_PROPERTY, "false");
36          MuleMessage result = client.send("vm://pojo1", message, props);
37          assertNotNull(result);
38          assertEquals("Received: " + message, result.getPayload());
39      }
40  }