@Test
public void testParseTokenInfo_withEmail() throws Exception {

  HttpRequest request = constructHttpRequest(SAMPLE_CONTENT_WITH_EMAIL);
  TokenInfo info = GoogleAuth.parseTokenInfo(request);
  assertEquals("123.apps.googleusercontent.com", info.clientId);
  assertEquals("https://www.googleapis.com/auth/userinfo.email"
      + " https://www.googleapis.com/auth/xapi.zoo" + " https://www.googleapis.com/auth/plus.me",
      info.scopes);
  assertEquals("1234567", info.userId);
  assertEquals("dummy@gmail.com", info.email);
}