@Test
public void deleteProductReferences()
{

   Product product = new Product();
   product.setId(5L);
   dao.deleteProductReferences(product);
   List<ProductCart> pcs = dao.readAll();
   for (ProductCart pc: pcs)
   {
      assertFalse(pc.getProducts().contains(product));
   }
}