MyHadoopThriftAuthBridge20S.Server.TOKEN_STORE.getToken(d));
// key expiration - create an already expired key
anotherManager.startThreads(); // generates initial key
anotherManager.stopThreads();
DelegationKey expiredKey = new DelegationKey(-1, 0, anotherManager.getAllKeys()[0].getKey());
anotherManager.logUpdateMasterKey(expiredKey); // updates key with sequence number
assertTrue("expired key not in allKeys",
anotherManager.reloadKeys().containsKey(expiredKey.getKeyId()));
anotherManager.rollMasterKeyExt();
assertFalse("Expired key not removed",
anotherManager.reloadKeys().containsKey(expiredKey.getKeyId()));
}