AccessTokenCacheFetcher extends CacheFetcher { @Override protected String getCacheKey() { return String.format("access-token-%s-%s-%s", owner, scopes, target); } AccessTokenCacheFetcher(String owner, List<String> scopes, String target);   }
@Test public void testGetCacheKey() { AccessTokenCacheFetcher fetcher = new AccessTokenCacheFetcher(ALICE, SCOPES, TARGET); assertEquals(String.format("access-token-%s-%s-%s", ALICE, SCOPES, TARGET), fetcher.getCacheKey()); }