@Override
@Test(dependsOnMethods = "count")
public void delete ()
{

   String id = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1";
   User root = udao.getRootUser ();
   int expectedCount = dao.count () - 1;
   Collection collection = dao.read (id);
   Assert.assertNotNull (collection);
   List<Long> products = dao.getProductIds (id, null);
   dao.delete (collection);
   Assert.assertNull (dao.read (id));
   Assert.assertEquals (dao.count (), expectedCount);
   // check existence of any linked objects.
   for (Long pid : products)
   {
      Assert.assertNotNull (pdao.read (pid));
   }
}