/**
   * Sets up the test environment.
   *
   * @throws Exception to Junit
   */
  protected void setUp() throws Exception {
    TestHelper.clearConfig();
    TestHelper.addConfig();

    aliasMap = new HashMap();
    aliasMap.put("The age", "p.age");
    aliasMap.put("The company name", "c.name");

    strategy = new HibernateSearchStrategy("HibernateSearchStrategy");

    sessionFactory = new Configuration().configure(FILE).buildSessionFactory();
  }
  /**
   * The setUp of the unit test.
   *
   * @throws Exception to Junit
   */
  protected void setUp() throws Exception {
    // add the configuration
    TestHelper.clearConfig();
    TestHelper.addConfig();

    aliasMap = new HashMap();
    aliasMap.put("The age", "age");
    aliasMap.put("The weight", "weight");

    associations = new HashMap();

    associations.put(EqualToFilter.class, new EqualsFragmentBuilder());

    strategy = new DatabaseSearchStrategy(NS);

    returnFields = new ArrayList();
    returnFields.add("peopleID");
    connectionFactory = new DBConnectionFactoryImpl(NSDB);
  }
 /**
  * Tears down the test environment.
  *
  * @throws Exception to JUnit
  */
 protected void tearDown() throws Exception {
   TestHelper.clearConfig();
   sessionFactory.close();
 }
 /**
  * The tearDown of the unit test.
  *
  * @throws Exception to JUnit
  */
 protected void tearDown() throws Exception {
   // remove the configuration in tearDown
   TestHelper.clearConfig();
 }