@Override
    protected void verifyProfile(CommonProfile userProfile) {
        val profile = (YahooProfile) userProfile;
        assertEquals("PCSXZCYSWC6XUJNMZKRGWVPHNU", profile.getId());
        assertEquals(YahooProfile.class.getName() + Pac4jConstants.TYPED_ID_SEPARATOR + "PCSXZCYSWC6XUJNMZKRGWVPHNU",
                profile.getTypedId());
        assertTrue(ProfileHelper.isTypedIdOf(profile.getTypedId(), YahooProfile.class));
        assertTrue(StringUtils.isNotBlank(profile.getAccessToken()));
        assertCommonProfile(userProfile, "testscribeup@yahoo.fr", "Test", "ScribeUP", "Test ScribeUP", "Test",
                Gender.MALE, Locale.FRANCE,
                "https://s.yimg.com/wm/modern/images/default_user_profile_pic_192.png",
                "http://profile.yahoo.com/PCSXZCYSWC6XUJNMZKRGWVPHNU", "Chatou, Ile-de-France");
        assertEquals("my profile", profile.getAboutMe());
        val addresses = profile.getAddresses();
        assertEquals(2, addresses.size());
        val address = addresses.get(0);
        assertEquals(3, address.getId().intValue());
        assertTrue(address.getCurrent());
        assertEquals(Locale.FRENCH, address.getCountry());
        assertEquals(Pac4jConstants.EMPTY_STRING, address.getState());
        assertEquals(Pac4jConstants.EMPTY_STRING, address.getCity());
        assertEquals("78400", address.getPostalCode());
        assertEquals(Pac4jConstants.EMPTY_STRING, address.getStreet());
        assertEquals("HOME", address.getType());
        assertEquals(1976, profile.getBirthYear().intValue());
        assertEquals("03/10", new SimpleDateFormat("MM/dd").format(profile.getBirthdate()));
        assertEquals("2012-02-06T12:46:43Z", new SimpleDateFormat(Converters.DATE_TZ_RFC822_FORMAT).format(profile.getCreated()));
        assertEquals(41, profile.getDisplayAge().intValue());
        val disclosures = profile.getDisclosures();
        assertEquals(2, disclosures.size());
        val disclosure = disclosures.get(0);
        assertEquals("1", disclosure.getAcceptance());
        assertEquals("bd", disclosure.getName());
        assertEquals("1", disclosure.getVersion());
        val emails = profile.getEmails();
        assertEquals(3, emails.size());
        val email = emails.get(1);
        assertEquals(1, email.getId().intValue());
        assertTrue(email.getPrimary());
        assertEquals("testscribeup@yahoo.fr", email.getHandle());
        assertEquals("HOME", email.getType());
        assertEquals(Gender.MALE, profile.getGender());
        val image = profile.getImage();
        assertEquals("https://s.yimg.com/wm/modern/images/default_user_profile_pic_192.png", image.getImageUrl());
        assertEquals(192, image.getWidth().intValue());
        assertEquals(192, image.getHeight().intValue());
        assertEquals("192x192", image.getSize());
        val interests = profile.getInterests();
        assertEquals(11, interests.size());
        val interest = interests.get(0);
        assertEquals("basic interest", interest.getDeclaredInterests().get(0));
        assertEquals("prfFavHobbies", interest.getInterestCategory());
        assertTrue(profile.getIsConnected());
        assertEquals("2012-02-06T12:46:36Z", new SimpleDateFormat(Converters.DATE_TZ_RFC822_FORMAT).format(profile.getMemberSince()));
        assertEquals("Europe/Paris", profile.getTimeZone());
        assertEquals("2017-09-19T03:20:28Z", new SimpleDateFormat(Converters.DATE_TZ_RFC822_FORMAT).format(profile.getUpdated()));
        assertEquals("https://social.yahooapis.com/v1/user/PCSXZCYSWC6XUJNMZKRGWVPHNU/profile", profile.getUri());
        assertNotNull(profile.getAccessSecret());
        assertEquals("A", profile.getAgeCategory());
        assertEquals(25, profile.getAttributes().size());
    }
Run manually a test for the {@link YahooClient}.

@author Jerome Leleu
@since 1.9.0
pac4j-oauth/src/test/java/org/pac4j/oauth/run/RunYahooClient.java