// void org.apache.hadoop.yarn.client.api.NMTokenCache.setNMToken(String, Token)
// vanilla
// static void org.apache.hadoop.yarn.client.api.NMTokenCache.setNMToken(String, Token)
NMTokenCache cache1 = NMTokenCacheCompat.getNMTokenCache();
NMTokenCache cache2 = NMTokenCacheCompat.getNMTokenCache();
cache1.setNMToken("nodeAddr1", new TestToken("kind1"));
cache2.setNMToken("nodeAddr2", new TestToken("kind2"));
assertThat(cache1.getNMToken("nodeAddr1").getKind(), is("kind1"));
assertThat(cache2.getNMToken("nodeAddr1").getKind(), is("kind1"));
assertThat(cache1.getNMToken("nodeAddr2").getKind(), is("kind2"));
assertThat(cache2.getNMToken("nodeAddr2").getKind(), is("kind2"));
assertThat(cache1, sameInstance(cache2));
assertThat(NMTokenCacheCompat.getNMTokenCache(), sameInstance(NMTokenCacheCompat.getNMTokenCache()));
}