public void testAxisHttpEndpointURICopy() throws Exception
{
// Create MuleEndpointURI and test values
MuleEndpointURI endpointUri = new MuleEndpointURI("axis:http://localhost:8080?param=1", muleContext);
endpointUri.initialise();
assertEquals("http", endpointUri.getScheme());
assertEquals("axis", endpointUri.getSchemeMetaInfo());
assertEquals("axis:http", endpointUri.getFullScheme());
assertEquals("http://localhost:8080?param=1", endpointUri.getAddress());
// Reconstruct MuleEndpointURI and test values
EndpointURI newEndpointUri = new MuleEndpointURI(endpointUri);
newEndpointUri.initialise();
assertEquals("http", newEndpointUri.getScheme());
assertEquals("axis", newEndpointUri.getSchemeMetaInfo());
assertEquals("axis:http", newEndpointUri.getFullScheme());
assertEquals("http://localhost:8080?param=1", newEndpointUri.getAddress());
assertEquals(endpointUri, newEndpointUri);
}