AccessTokenCacheFetcher extends CacheFetcher { @Override protected int getLocalCacheTime() { return AppSettings.getInstance().getInt(AppSettings.ACCESS_TOKEN_LOCAL_CACHE_TIME); } AccessTokenCacheFetcher(String owner, List<String> scopes, String target);   }
@Test public void testGetLocalCacheTime() { AccessTokenCacheFetcher fetcher = new AccessTokenCacheFetcher(ALICE, SCOPES, TARGET); assertEquals(1234, fetcher.getLocalCacheTime()); }