@Test
    public void testJoinFilter() throws Exception
    {
        // Setup fixture.
        final List<String> input = new ArrayList<>();
        input.add( "foo" );
        input.add( "bar" );

        // Execute system under test.
        final String result = LdapManager.joinFilter( '|', input );

        // Verify result.
        assertNotNull( result );
        assertEquals( "(|(foo)(bar))", result );
    }
Tests if {@link LdapManager#joinFilter(char, List)} joins a collection of parts into one string.
xmppserver/src/test/java/org/jivesoftware/openfire/ldap/LdapManagerTest.java