@Test
    void verifyInfo() {
        val mdui = mock(UIInfo.class);
        val description = mock(Description.class);
        when(description.getValue()).thenReturn("Description");
        when(description.getXMLLang()).thenReturn("en");

        val names = mock(DisplayName.class);
        when(names.getValue()).thenReturn("Name");
        when(names.getXMLLang()).thenReturn("en");

        when(mdui.getDescriptions()).thenReturn(CollectionUtils.wrapList(description));
        when(mdui.getDisplayNames()).thenReturn(CollectionUtils.wrapList(names));

        val logo = mock(Logo.class);
        when(logo.getURI()).thenReturn("https://example.logo.com");
        when(logo.getWidth()).thenReturn(16);
        when(logo.getHeight()).thenReturn(16);
        when(mdui.getLogos()).thenReturn(List.of(logo));

        val infoUrl = mock(InformationURL.class);
        when(infoUrl.getURI()).thenReturn("https://github.com");
        when(mdui.getInformationURLs()).thenReturn(CollectionUtils.wrapList(infoUrl));

        val privacyUrl = mock(PrivacyStatementURL.class);
        when(privacyUrl.getURI()).thenReturn("https://github.com");
        when(mdui.getPrivacyStatementURLs()).thenReturn(CollectionUtils.wrapList(privacyUrl));

        val service = RegisteredServiceTestUtils.getRegisteredService();
        val info = new SamlMetadataUIInfo(mdui, service);
        assertEquals("Name", info.getDisplayName());
        assertEquals("Description", info.getDescription());
        assertFalse(info.getDescriptions().isEmpty());
        assertFalse(info.getDisplayNames().isEmpty());
        assertFalse(info.getInformationURLs().isEmpty());
        assertFalse(info.getPrivacyStatementURLs().isEmpty());
        assertNotNull(info.getInformationURL());
        assertNotNull(info.getPrivacyStatementURL());
        assertFalse(info.getLogoUrls().isEmpty());

        assertNotNull(info.toString());
        assertNotNull(info.getUiInfo());
    }
This is {@link SamlMetadataUIInfoTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-saml-mdui-core/src/test/java/org/apereo/cas/support/saml/mdui/SamlMetadataUIInfoTests.java