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

        connect((connection, context) -> {
            Async async = context.async();
            connection.search("ou=people,o=apiman", "!!!!", LdapSearchScope.SUBTREE)
            .setLdapErrorHandler(error -> {
                context.assertTrue(error.getResultCode().equals(LdapResultCode.FILTER_ERROR));
                async.complete();
            })
            .search(searchResult -> {
                context.assertFalse(true); // Should not be executed
            });
        });
    }
@author Marc Savy {@literal <msavy@redhat.com>}
gateway/platforms/vertx3/vertx3/src/test/java/io/apiman/gateway/platforms/vertx3/components/ldap/LdapQueryTests.java