lib/java: UrlParserTest, UrnParserTest
lib/java: using Optional in Url
lib/java: testing JsonRpc protocols
lib/java: further JsonRpc protocol tests