@Test
    public void shouldCompleteMultipleSimpleQueries()  {
        config.setBindDn("uid=admin,ou=system");
        config.setBindPassword("secret");

        connect((connection, context) -> {
            Async async = context.async();
            Async async2 = context.async();
            connection.search("ou=people,o=apiman", "(uid=msavy)", LdapSearchScope.SUBTREE)
                 .setLdapErrorHandler(result -> context.fail(result.getCause()))
                 .search(searchResult -> {
                    context.assertTrue(searchResult.isSuccess());

                    List<ILdapSearchEntry> result = searchResult.getResult();
                    context.assertEquals(1, result.size());
                    async.complete();
                });

            connection.search("ou=people,o=apiman", "(uid=ewittman)", LdapSearchScope.SUBTREE)
                 .setLdapErrorHandler(result -> context.fail(result.getCause()))
                 .search(searchResult -> {
                    context.assertTrue(searchResult.isSuccess());

                    List<ILdapSearchEntry> result = searchResult.getResult();
                    context.assertEquals(1, result.size());
                    async2.complete();
                });
        });
    }
@author Marc Savy {@literal <msavy@redhat.com>}
gateway/platforms/vertx3/vertx3/src/test/java/io/apiman/gateway/platforms/vertx3/components/ldap/LdapQueryTests.java