/** Ensures that removing a ad_group works as expected. */
  @Test
  public void testRemove() {
    async_tasks result = dao.get(existingAsyncTask.gettask_id());
    assertNotNull(result);

    assertEquals(dao.remove(existingAsyncTask.gettask_id()), 1);
    result = dao.get(existingAsyncTask.gettask_id());

    assertNull(result);
    assertEquals(dao.remove(existingAsyncTask.gettask_id()), 0);

    // The removed task is associated with an entity, try to fetch
    // tasks for the entity, and see no task is returned
    List<Guid> taskIds = dao.getAsyncTaskIdsByEntity(FixturesTool.ENTITY_WITH_TASKS_ID);
    assertNotNull(taskIds);
    assertTrue(taskIds.isEmpty());
  }