@Test
    public void testIdentifyPlaceholders() throws Exception
    {
        // Setup fixture.
        final Document input = DocumentHelper.parseText("<vcard><el>{placeholderA}, {placeholderB}</el></vcard>");

        // Execute system under test.
        final LdapVCardProvider.VCardTemplate result = new LdapVCardProvider.VCardTemplate(input);

        // Verify result.
        assertNotNull( result );
        assertNotNull( result.getAttributes() );
        assertEquals( 2, result.getAttributes().length );
        assertTrue( Arrays.asList( result.getAttributes()).contains("placeholderA") );
        assertTrue( Arrays.asList( result.getAttributes()).contains("placeholderB") );
    }
Verifies that, using a simplified template, all placeholders get correctly identified in a VCardTemplate, when
they're defined in the value of the same element.
xmppserver/src/test/java/org/jivesoftware/openfire/ldap/VCardTemplateTest.java