@@ -0,0 +1,1272 @@
+package com.google.cloud.tools.ide.login;%0A%0Aimport com.google.common.collect.ImmutableSet;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport java.util.Set;%0A%0Apublic class OAuthDataTest %7B%0A%0A  private Set%3CString%3E scopes = ImmutableSet.of(%22scope 1%22, %22scope 2%22);%0A  %0A  private OAuthData data = new OAuthData(%22access token%22, %22refresh token%22, %22storedEmail@example.com%22,%0A      scopes, 10);%0A%0A  @Test%0A  public void testNullable() %7B%0A    data = new OAuthData(null, null, null, null, 10);%0A    Assert.assertNull(data.getStoredEmail());%0A    Assert.assertNull(data.getRefreshToken());%0A    Assert.assertNull(data.getAccessToken());%0A    Assert.assertTrue(data.getStoredScopes().isEmpty());%0A  %7D%0A  %0A  @Test%0A  public void testGetStoredEmail() %7B%0A    Assert.assertEquals(%22storedEmail@example.com%22, data.getStoredEmail());%0A  %7D%0A%0A  @Test%0A  public void testGetStoredScopes() %7B%0A    Assert.assertEquals(scopes, data.getStoredScopes());%0A  %7D%0A%0A  @Test%0A  public void testGetAccessToken() %7B%0A    Assert.assertEquals(%22access token%22, data.getAccessToken());%0A  %7D%0A%0A  @Test%0A  public void testGetRefreshToken() %7B%0A    Assert.assertEquals(%22refresh token%22, data.getRefreshToken());%0A  %7D%0A%0A  @Test%0A  public void testGetAccessTokenExpiryTime() %7B%0A    Assert.assertEquals(10L, data.getAccessTokenExpiryTime());%0A  %7D%0A%7D%0A%0A

test OAuthData