@Test
public void testObtainTokens() throws Exception {

  Credentials credentials = new Credentials();
  FileSystem fs = mock(FileSystem.class);
  TokenCache.obtainTokensForNamenodesInternal(fs, credentials, conf, renewer);
  verify(fs).addDelegationTokens(eq(renewer), eq(credentials));
}