@Test
public void testHostPortAndPathUrlUserInfoAndQuery() throws Exception
{
EndpointURI endpointUri = new MuleEndpointURI("http://admin:pwd@localhost:8080/app/path?${foo}", muleContext);
endpointUri.initialise();
assertEquals("http", endpointUri.getScheme());
assertEquals("http://localhost:8080/app/path?$[foo]", endpointUri.getAddress());
assertNull(endpointUri.getEndpointName());
assertEquals(8080, endpointUri.getPort());
assertEquals("localhost", endpointUri.getHost());