public void Match ()
		{
			EndpointAddressMessageFilter f =
				new EndpointAddressMessageFilter (new EndpointAddress ("http://localhost:8080"));
			Assert.IsTrue (f.Match (CreateMessageWithTo ("http://localhost:8080")), "#1");
			Assert.IsTrue (f.Match (CreateMessageWithTo (new Uri ("http://localhost:8080"))), "#1-2");
			Assert.IsFalse (f.Match (CreateMessageWithTo (anonymous_uri)), "#2");
			Assert.IsFalse (f.Match (CreateMessageWithTo (EndpointAddress.AnonymousUri)), "#3");
			Assert.IsFalse (f.Match (CreateMessageWithTo (EndpointAddress.NoneUri)), "#4");
			// no To header
			Assert.IsFalse (f.Match (Message.CreateMessage (MessageVersion.Default, "urn:myaction")), "#5");
			
			Assert.IsTrue (f.Match (CreateMessageWithTo ("http://10.1.1.1:8080")), "#6");
			Assert.IsFalse (f.Match (CreateMessageWithTo ("http://10.1.1.1:8081")), "#7");

			f = new EndpointAddressMessageFilter (new EndpointAddress ("http://localhost:8080/abc"), true);
			Assert.IsFalse (f.Match (CreateMessageWithTo ("http://127.0.0.2:8080/abc")), "#8");

			Assert.IsTrue (f.Match (CreateMessageWithTo ("http://localhost:8080/abc?wsdl")), "#9");

			f = new EndpointAddressMessageFilter (new EndpointAddress ("http://localhost:8080/abc?foo"), true);
			Assert.IsTrue (f.Match (CreateMessageWithTo ("http://localhost:8080/abc?wsdl")), "#10");
		}
        public void Match()
        {
            EndpointAddressMessageFilter f =
                new EndpointAddressMessageFilter(new EndpointAddress("http://localhost:8080"));

            Assert.IsTrue(f.Match(CreateMessageWithTo("http://localhost:8080")), "#1");
            Assert.IsTrue(f.Match(CreateMessageWithTo(new Uri("http://localhost:8080"))), "#1-2");
            Assert.IsFalse(f.Match(CreateMessageWithTo(anonymous_uri)), "#2");
            Assert.IsFalse(f.Match(CreateMessageWithTo(EndpointAddress.AnonymousUri)), "#3");
            Assert.IsFalse(f.Match(CreateMessageWithTo(EndpointAddress.NoneUri)), "#4");
            // no To header
            Assert.IsFalse(f.Match(Message.CreateMessage(MessageVersion.Default, "urn:myaction")), "#5");

            Assert.IsTrue(f.Match(CreateMessageWithTo("http://10.1.1.1:8080")), "#6");
            Assert.IsFalse(f.Match(CreateMessageWithTo("http://10.1.1.1:8081")), "#7");

            f = new EndpointAddressMessageFilter(new EndpointAddress("http://localhost:8080/abc"), true);
            Assert.IsFalse(f.Match(CreateMessageWithTo("http://127.0.0.2:8080/abc")), "#8");

            Assert.IsTrue(f.Match(CreateMessageWithTo("http://localhost:8080/abc?wsdl")), "#9");

            f = new EndpointAddressMessageFilter(new EndpointAddress("http://localhost:8080/abc?foo"), true);
            Assert.IsTrue(f.Match(CreateMessageWithTo("http://localhost:8080/abc?wsdl")), "#10");
        }