public void TestParsingCompositeURI()
{
URISupport.CompositeData data = URISupport.ParseComposite(
URISupport.CreateCompatibleUri("failover://(tcp://localhost:61616)?name=foo"));
Assert.AreEqual(1, data.Components.Length, "one component");
Assert.AreEqual("localhost", data.Components[0].Host, "Component Host is incorrect");
Assert.AreEqual(61616, data.Components[0].Port, "Component Port is incorrect");
Assert.AreEqual(1, data.Parameters.Count, "Size: " + data.Parameters);
}