/**
   * Test the suppression of an entity A.<br>
   *
   * <ul>
   *   <li>Step 1 : Create an entity
   *   <li>Step 2 : Delete the entity
   *   <li>Step 3 : Search the entity and verify it doesn't exist anymore
   * </ul>
   *
   * @throws DaoException if an unexpected DAO exception occurs.
   */
  public final void testDeleteA() throws DaoException {
    // Initialized the test
    A a = getAExample();
    assobidimanytomanyDao.createA(a);

    // Execute the tested code
    assobidimanytomanyDao.deleteA(a);

    // Verify result
    boolean found = false;
    for (A currentA : assobidimanytomanyDao.findAllAs()) {
      if (currentA.getId().equals(a.getId())) {
        found = true;
      }
    }
    Assert.assertFalse("A not deleted", found);
  }