@Test @Ignore
    public void testLdap() throws Exception {
        DirContext ctx = createContext();
        Assert.assertNotNull(ctx);

        SearchControls controls = new SearchControls();
        controls.setSearchScope(SearchControls.SUBTREE_SCOPE);
        NamingEnumeration<SearchResult> result = ctx.search("o=apiman", "(ObjectClass=*)", controls);

        System.out.println(" ==== Search Results ====");
        while (result.hasMore()) {
            SearchResult entry = result.next();
            System.out.println(" ===> " + entry.getName());
        }
    }
Fires up an ldap server to do a better job testing the basic auth
policy when configured for ldap.

@author eric.wittmann@redhat.com
gateway/engine/policies/src/test/java/io/apiman/gateway/engine/policies/BasicAuthLDAPTest.java