Added a test against java.net.URI, just to be sure.