@Test
    public void testUrlArgsEquals() {
        RpcAddressParser parser = new RpcAddressParser();

        String urlA = "localhost:3333?key1=value1";
        Url urlObjA = parser.parse(urlA);
        String urlB = "localhost:3333?key1=value1";
        Url urlObjB = parser.parse(urlB);
        String urlC = "localhost:3333?key1=value2";
        Url urlObjC = parser.parse(urlC);

        Assert.assertEquals(urlObjA, urlObjB);
        Assert.assertEquals(urlObjA.hashCode(), urlObjB.hashCode());
        Assert.assertFalse(urlObjA.equals(urlObjC));
        Assert.assertFalse(urlObjA.hashCode() == urlObjC.hashCode());
    }
Test basic usage of url

@author xiaomin.cxm
@version $Id: UrlTest.java, v 0.1 Apr 18, 2016 7:22:01 PM xiaomin.cxm Exp $
src/test/java/com/alipay/remoting/inner/connection/UrlTest.java