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

         TestCompletion completion = TestSuite.create("").test("",  context -> {
             Async async = context.async();

             ldapClientComponent.bind(config, result -> {
                 if (result.isError())
                     result.getError().printStackTrace(System.out);

                 context.assertTrue(result.isSuccess());
                 context.assertEquals(LdapResultCode.INVALID_CREDENTIALS, result.getResult().getResultCode());
                 async.complete();
             });

             async.awaitSuccess();
        }).run();

        completion.awaitSuccess();
    }
@author Marc Savy {@literal <msavy@redhat.com>}
gateway/platforms/vertx3/vertx3/src/test/java/io/apiman/gateway/platforms/vertx3/components/ldap/LdapBindTests.java