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

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

        // Verify result.
        assertNotNull( result );
        assertNotNull( result.getAttributes() );
        assertEquals( 1, result.getAttributes().length );
        assertEquals( "placeholder", result.getAttributes()[0] );
    }
Verifies that, using a simplified template, a placeholder gets correctly identified in a VCardTemplate.
xmppserver/src/test/java/org/jivesoftware/openfire/ldap/VCardTemplateTest.java