import java.net.URI;
import java.net.URISyntaxException;

public class JI9029238 {

	public static void main(String[] args) throws URISyntaxException {
		URI withColonURI = new URI(null, null, "a:b", null); 

        assert !(withColonURI.isAbsolute()) : "Should be relative"; 
        assert withColonURI.getScheme() == null : "Should not have a scheme"; 

        URI root = new URI("file", null, "/", null); 
        URI withPath = new URI("file", null, "/a:b", null); 
        URI rel = root.relativize(withPath); 

        assert !rel.isAbsolute() : "Should be relative"; 
        assert rel.normalize().toASCIIString().startsWith("./") : "Normalization should prepend \".\" segment"; 

	}

}
