/**
   * The connection is established and the scheme is created.
   *
   * @postcondition: the connection has been established.
   * @postcondition: the scheme is created.
   * @throws Exception
   */
  @Before
  public void setUp() throws Exception {

    String xmlConfig =
        "<config><database>\n"
            + "<user>scetris-testing</user>"
            + "<password>kleinerAffeMitHut</password>"
            + "<host>localhost</host>"
            + "<name>scetris-testing</name>"
            + "</database></config>\n";
    XmlHelper xmlHelper = new XmlHelper();
    Config conf =
        new Config(
            xmlHelper,
            xmlHelper.newDocument(xmlConfig.getBytes(Charset.forName("UTF-8"))),
            "database");

    assertEquals("localhost", conf.get("host"));

    relationManager = new RelationManager(new ConnectionManagerImpl(conf));
    relationManager.connectionManager.connect();

    assertTrue(relationManager.connectionManager.validate());
    assertTrue(relationManager.install());
  }