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