@Test
    public void testReplacePrioritizedPlaceholdersVariantC() throws Exception
    {
        // Setup fixture.
        final Document doc = DocumentHelper.parseText("<vcard><el>(|({placeholderA})({placeholderB})({placeholderC}))</el></vcard>");
        final LdapVCardProvider.VCardTemplate template = new LdapVCardProvider.VCardTemplate(doc);
        final Map<String, String> attributes = new HashMap<>();
        attributes.put("placeholderA", "");
        attributes.put("placeholderB", "");
        attributes.put("placeholderC", "valueC");

        // Execute system under test.
        final LdapVCardProvider.VCard vCard = new LdapVCardProvider.VCard(template);
        final Element result = vCard.getVCard(attributes);

        // Verify result.
        assertNotNull( result );
        assertEquals( "<vcard><el>valueC</el></vcard>", result.asXML() );
    }
Verifies that, using a simplified template, all placeholder in a template defined in the format that is intended
to be replaced with the first non-empty matching attribute value, get correctly replaced.

@see <a href="https://igniterealtime.atlassian.net/browse/OF-1106">OF-1106</a>
xmppserver/src/test/java/org/jivesoftware/openfire/ldap/VCardTest.java