// check that canonical name was requested, if renewer is not null that
 // a token was requested, and that child fs was invoked
 /// <exception cref="System.IO.IOException"/>
 private void VerifyTokenFetch(FileSystemTestHelper.MockFileSystem fs, bool expected
                               )
 {
     Org.Mockito.Mockito.Verify(((FileSystemTestHelper.MockFileSystem)fs.GetRawFileSystem
                                     ()), Org.Mockito.Mockito.AtLeast(1)).GetCanonicalServiceName();
     if (expected)
     {
         Org.Mockito.Mockito.Verify(((FileSystemTestHelper.MockFileSystem)fs.GetRawFileSystem
                                         ())).GetDelegationToken(renewer);
     }
     else
     {
         Org.Mockito.Mockito.Verify(((FileSystemTestHelper.MockFileSystem)fs.GetRawFileSystem
                                         ()), Org.Mockito.Mockito.Never()).GetDelegationToken(Matchers.Any <string>());
     }
     Org.Mockito.Mockito.Verify(((FileSystemTestHelper.MockFileSystem)fs.GetRawFileSystem
                                     ()), Org.Mockito.Mockito.AtLeast(1)).GetChildFileSystems();
 }
 /// <exception cref="System.IO.IOException"/>
 public static FileSystemTestHelper.MockFileSystem CreateFileSystemForServiceName(
     Text service, params FileSystem[] children)
 {
     FileSystemTestHelper.MockFileSystem fs = new FileSystemTestHelper.MockFileSystem(
         );
     FileSystemTestHelper.MockFileSystem mockFs = ((FileSystemTestHelper.MockFileSystem
                                                    )fs.GetRawFileSystem());
     if (service != null)
     {
         Org.Mockito.Mockito.When(mockFs.GetCanonicalServiceName()).ThenReturn(service.ToString
                                                                                   ());
         Org.Mockito.Mockito.When(mockFs.GetDelegationToken(Matchers.Any <string>())).ThenAnswer
             (new _Answer_255(service));
     }
     Org.Mockito.Mockito.When(mockFs.GetChildFileSystems()).ThenReturn(children);
     return(fs);
 }