public static void Setup()
 {
     conf = ViewFileSystemTestSetup.CreateConfig();
     fs1  = SetupFileSystem(new URI("fs1:/"), typeof(TestViewFileSystemDelegation.FakeFileSystem
                                                     ));
     fs2 = SetupFileSystem(new URI("fs2:/"), typeof(TestViewFileSystemDelegation.FakeFileSystem
                                                    ));
     viewFs = FileSystem.Get(FsConstants.ViewfsUri, conf);
 }
        /// <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);
        }