@Override
 @After
 public void tearDown() throws Exception {
   if (USE_EXTERNAL_TEST_LDAP_SERVER) {
     runtimeHarness.undeployContrib(
         "org.nuxeo.ecm.directory.ldap.tests", EXTERNAL_SERVER_SETUP_OVERRIDE);
   } else {
     runtimeHarness.undeployContrib(
         "org.nuxeo.ecm.directory.ldap.tests", INTERNAL_SERVER_SETUP_OVERRIDE);
   }
   super.tearDown();
 }
 @Override
 @Before
 public void setUp() throws Exception {
   super.setUp();
   // override default defs
   if (USE_EXTERNAL_TEST_LDAP_SERVER) {
     runtimeHarness.deployContrib(
         "org.nuxeo.ecm.directory.ldap.tests", EXTERNAL_SERVER_SETUP_OVERRIDE);
   } else {
     runtimeHarness.deployContrib(
         "org.nuxeo.ecm.directory.ldap.tests", INTERNAL_SERVER_SETUP_OVERRIDE);
     getLDAPDirectory("userDirectory").setTestServer(server);
     getLDAPDirectory("groupDirectory").setTestServer(server);
   }
 }
 @Before
 public void setUp() throws Exception {
   EXTERNAL_SERVER_SETUP = "TestDirectoriesWithExternalOpenLDAP-SSL.xml";
   super.setUp();
 }