1   /*
2    * $Id: RemoteDispatcherTestCase.java 10917 2008-02-20 17:10:31Z acooke $
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  package org.mule.test.integration.client;
11  
12  import org.mule.module.client.remoting.RemoteDispatcherAgent;
13  import org.mule.tck.FunctionalTestCase;
14  import org.mule.transformer.wire.SerializedMuleMessageWireFormat;
15  
16  public class RemoteDispatcherTestCase extends FunctionalTestCase
17  {
18      protected String getConfigResources()
19      {
20          return "org/mule/test/integration/client/mule-remote-dispatcher-agent.xml";
21      }
22  
23      public void testNonEmptyProperties() throws Exception
24      {
25          RemoteDispatcherAgent agent = (RemoteDispatcherAgent) muleContext.getRegistry().lookupAgent("remote-dispatcher-agent");
26          assertNotNull(agent.getEndpoint());
27          assertEquals("test://localhost:50608",agent.getEndpoint().getEndpointURI().getUri().toString());
28          assertNotNull(agent.getWireFormat());
29          assertTrue(agent.getWireFormat() instanceof SerializedMuleMessageWireFormat);
30      }
31  }
32