@Test
public void testGetDomain(){

    String url = "http://www.dianping.com/aa/";
    Assert.assertEquals("www.dianping.com",UrlUtils.getDomain(url));
    url = "www.dianping.com/aa/";
    Assert.assertEquals("www.dianping.com",UrlUtils.getDomain(url));
    url = "http://www.dianping.com";
    Assert.assertEquals("www.dianping.com",UrlUtils.getDomain(url));
}