public void testCopyMetaSchemeEndpointURI() throws Exception
{
// Create and test values
ImmutableEndpoint endpoint = MuleTestUtils.getTestSchemeMetaInfoOutboundEndpoint("testEndpoint", "protocol", muleContext);
EndpointURI endpointUri = endpoint.getEndpointURI();
assertEquals("protocol", endpointUri.getScheme());
assertEquals("test", endpointUri.getSchemeMetaInfo());
assertEquals("test:protocol", endpointUri.getFullScheme());
assertEquals("test", endpointUri.getAddress());
// Copy and test values
EndpointURI newEndpointUri = new MuleEndpointURI(endpointUri);
newEndpointUri.initialise();
assertEquals("protocol", newEndpointUri.getScheme());
assertEquals("test", newEndpointUri.getSchemeMetaInfo());
assertEquals("test:protocol", newEndpointUri.getFullScheme());
assertEquals("test", newEndpointUri.getAddress());
assertEquals(endpointUri, newEndpointUri);
}