abstract InMemoryDirectoryServer into junit rule