/**
   * Tests <code>{@link CopilotProjectDAOImpl#delete(long)}</code> method.
   *
   * <p>{@link CopilotDAOException} is expected.
   *
   * @throws CopilotDAOException if any error occurs
   */
  @Test(expected = CopilotDAOException.class)
  public void testDeleteFailure2() throws CopilotDAOException {

    MockIdentifiableEntityDAO dao = new MockIdentifiableEntityDAO();
    dao.setSessionFactory(hibernateTemplate.getSessionFactory());
    dao.delete(1L);
  }
  /**
   * Tests <code>{@link CopilotProjectDAOImpl#retrieveAll()}</code> method.
   *
   * <p>{@link CopilotDAOException} is expected.
   *
   * @throws CopilotDAOException if any error occurs
   */
  @Test(expected = CopilotDAOException.class)
  public void testRetrieveAllFailure1() throws CopilotDAOException {

    MockIdentifiableEntityDAO dao = new MockIdentifiableEntityDAO();
    dao.setSessionFactory(hibernateTemplate.getSessionFactory());

    dao.retrieveAll();
  }