@Test
    void verifyNestedOption() {
        val map = CollectionUtils.wrap(OAuth20UserProfileViewRenderer.MODEL_ATTRIBUTE_ID, "cas",
            OAuth20UserProfileViewRenderer.MODEL_ATTRIBUTE_ATTRIBUTES,
            CollectionUtils.wrap("email", "cas@example.org", "name", "Test"),
            "something", CollectionUtils.wrapList("something"));
        val json = oauthUserProfileViewRenderer.render((Map) map, mock(OAuth20AccessToken.class), new MockHttpServletResponse());
        assertNotNull(json.getBody());
        val value = (Map) json.getBody();
        assertNotNull(value.get(OAuth20UserProfileViewRenderer.MODEL_ATTRIBUTE_ID));
        assertNotNull(value.get("email"));
        assertNotNull(value.get("name"));
        assertNull(value.get(OAuth20UserProfileViewRenderer.MODEL_ATTRIBUTE_ATTRIBUTES));
    }
This is {@link OAuth20DefaultUserProfileViewRendererFlatTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/support/oauth/web/views/OAuth20DefaultUserProfileViewRendererFlatTests.java