@Test
public void testInitWithNoTokens() throws IOException, URISyntaxException {

  Configuration conf = new Configuration();
  DummyFs fs = spy(new DummyFs());
  doReturn(null).when(fs).getDelegationToken(anyString());
  fs.initialize(new URI("dummyfs://127.0.0.1:1234"), conf);
  fs.tokenAspect.ensureTokenInitialized();
  // No token will be selected.
  verify(fs, never()).setDelegationToken(
      Mockito.<Token<? extends TokenIdentifier>> any());
}