public class OAuthFetcherConfigTest extends EasyMockTestCase {
@Test
public void testOAuthFetcherConfig() {
BlobCrypter crypter = mock(BlobCrypter.class);
HttpCache cache = mock(HttpCache.class);
GadgetOAuthTokenStore tokenStore = mock(GadgetOAuthTokenStore.class);
OAuthFetcherConfig config = new OAuthFetcherConfig(crypter, tokenStore, cache, new TimeSource());
assertEquals(crypter, config.getStateCrypter());
assertEquals(cache, config.getHttpCache());
assertEquals(tokenStore, config.getTokenStore());