/// <exception cref="System.Exception"/> internal static TestViewFileSystemDelegation.FakeFileSystem SetupFileSystem(URI uri , Type clazz) { string scheme = uri.GetScheme(); conf.Set("fs." + scheme + ".impl", clazz.FullName); TestViewFileSystemDelegation.FakeFileSystem fs = (TestViewFileSystemDelegation.FakeFileSystem )FileSystem.Get(uri, conf); Assert.Equal(uri, fs.GetUri()); Path targetPath = new FileSystemTestHelper().GetAbsoluteTestRootPath(fs); ConfigUtil.AddLink(conf, "/mounts/" + scheme, targetPath.ToUri()); return(fs); }