Moving some usages of RealFileSystem to MockFileSystem