@@ -0,0 +1,1515 @@
+/*%0A * Copyright 2017 Yi-Kun Yang.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.allnix.core;%0A%0Aimport java.net.URI;%0Aimport java.net.URISyntaxException;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.testng.Assert;%0Aimport org.testng.annotations.Test;%0A%0A/**%0A * This is more of learning than testing%0A *%0A * @author Yi-Kun Yang &gt;ykyang@gmail.com&lt;%0A */%0Apublic class TestURI %7B%0A  static private final Logger logger = LoggerFactory.getLogger(TestURI.class);%0A  %0A  @Test%0A  public void testURIResolve() throws URISyntaxException %7B%0A    URI base = new URI(%22http%22, null, %22localhost%22, 12345, %22/job%22, null, null);%0A    Assert.assertEquals(base.toString(),%22http://localhost:12345/job%22);%0A    %0A    URI idbase = new URI(%22http%22, null, %22localhost%22, 12345, %22/job/%22, null, null);%0A    Assert.assertEquals(idbase.toString(),%22http://localhost:12345/job/%22);%0A    %0A    URI idquery = idbase.resolve(%2223456%22);%0A    Assert.assertEquals(idquery.toString(),%22http://localhost:12345/job/23456%22);%0A  %7D%0A%7D%0A

Add URI test