1
2
3
4
5
6
7
8
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