protected void setUp() throws Exception {
    super.setUp();

    apacheDs = (ApacheDs) lookup(ApacheDs.ROLE);

    Partition partition = new Partition();
    partition.setName("test");
    partition.setSuffix("dc=test");
    partition.getContextAttributes().put(new BasicAttribute("objectClass", "top"));
    apacheDs.addPartition(partition);

    apacheDs.startServer();
  }