authContext.acquireTokenSilentAsync("resource", "clientid", TEST_USERID, callback);
final CountDownLatch signal = new CountDownLatch(1);
signal.await(ACTIVITY_TIME_OUT, TimeUnit.MILLISECONDS);
assertNull(callback.callbackException);
assertNotNull(callback.callbackResult);
<BUG>assertTrue(callback.callbackResult.getAccessToken().equals("I am an AT"));
cacheStore.removeAll();</BUG>
}
@SmallTest
public void testFavorLocalCacheUseLocalRTFailsSwitchToBroker() throws PackageManager.NameNotFoundException,

authContext.acquireTokenSilentAsync("resource", "clientid", TEST_USERID, callback);
final CountDownLatch signal = new CountDownLatch(1);
signal.await(ACTIVITY_TIME_OUT, TimeUnit.MILLISECONDS);
assertNull(callback.callbackException);
assertNotNull(callback.callbackResult);
assertTrue(callback.callbackResult.getAccessToken().equals("I am an AT"));
assertTrue(authContext.getCache() instanceof DefaultTokenCacheStore);
cacheStore.removeAll();
}
@SmallTest
public void testFavorLocalCacheUseLocalRTFailsSwitchToBroker() throws PackageManager.NameNotFoundException,
