@Test
    public void testUrlArgs() {
        Url url = new Url("127.0.0.1", 1111);
        try {
            url.setConnNum(-1);
        } catch (Exception e) {
            logger.error(e.getMessage());
            Assert.assertEquals(e.getClass().getName(), IllegalArgumentException.class.getName());
        }

        try {
            url.setConnectTimeout(-1);
        } catch (Exception e) {
            logger.error(e.getMessage());
            Assert.assertEquals(e.getClass().getName(), IllegalArgumentException.class.getName());
        }
    }
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