### Question:
OAuthService { public static String getEmail(String accessToken) throws Exception { final String response = get("https: ObjectMapper objectMapper = new ObjectMapper(); final ArrayList<Map<String, Object>> emailList = objectMapper.readValue(response, ArrayList.class); String primaryVerifiedEmail = null; for (final Map email : emailList) { if (email.containsKey("email") && email.containsKey("verified") && email.containsKey("primary")) { if ((Boolean) email.get("verified") && (Boolean) email.get("primary")) { primaryVerifiedEmail = (String) email.get("email"); } } } return primaryVerifiedEmail; }  static String requestOAuthLocationUri(final SiteContext context); static User processOAuthRedirect(final SiteContext context, final Company company, String code); static String capitalizeFirstLetter(String original); static String getEmail(String accessToken); static String get(final String url, final String accessToken);  }### Answer:
@Test @Ignore public void getGetEmail() throws Exception { final String response = OAuthService.getEmail("xxx"); Assert.assertEquals("tommi.s.e.laukkanen@gmail.com", response); }