title: How can I setup an embedded ApacheDS in Junit5
body: <p>In the ApacheDS documentation about embedding an ApacheDS server in Junit test they only mentions example for Junit4 using</p>
  <pre class="lang-java prettyprint-override"><code>@RunWith(FrameworkRunner.class)
  </code></pre>
  <p>or</p>
  <pre class="lang-java prettyprint-override"><code>@ClassRule
  public static CreateLdapServerRule serverRule = new CreateLdapServerRule();
  </code></pre>
  <p>But <code>RunWith</code> and <code>ClassRule</code> are not available in Junit5.</p>
  <p>How can I run Junit5 tests with an embedded ApacheDS LdapServer ?</p>