Up until yesterday, i had not found a good way to test my LDAP client code besides manually testing it, which is simply unacceptable from my standpoint.

But thanks to this stack overflow anwer I was lead to the Unboundid LDAP SDK.

After playing around writing tests with it, I quickly refactored my test code into an annotation based test utility that allows me to easily start up the server and seed it with information. I've put the code on Github.

Update 2013-06-08 - ldap-test-utils is in Maven Central.