void () { assertEquals(null, VirtualFileManager.extractProtocol("")); assertEquals(null, VirtualFileManager.extractProtocol("file:/")); assertEquals("file", VirtualFileManager.extractProtocol("file://")); assertEquals("file", VirtualFileManager.extractProtocol("file:///some/path/file.rb:24")); assertEquals("file", VirtualFileManager.extractProtocol("file://./some/path/file.rb:24")); assertEquals("ruby_qn", VirtualFileManager.extractProtocol("ruby_qn://")); assertEquals("ruby_qn", VirtualFileManager.extractProtocol("ruby_qn://A::B.method")); }