The UnboundID LDAP SDK provides clients with the ability to create an in-memory directory server. This type of server allows quick testing of LDAP clients – there is no need to install a server locally.
The following example shows code how to create the server, read the root DSE from the server, and add an entry to the server. See the Java API documentation for the full capabilities of the in-memory directory server. Download the file LdapListenerExample.java.