@Test
	public void testEditPromotion() {

		BlockingQueue<Promotion> promotionAux = null;

		Product book = new Product("Book", 1234, 2.30, 100);
		Promotion promotion = new Promotion(book, 1.00, 1245);

		facade.addProduct(book);
		facade.addPromotion(promotion);

		try {
			Thread.sleep(4000);
		} catch (InterruptedException e1) {
			e1.printStackTrace();
		}

		facade.getListPromotion(copyListOfAllPromotion);

		try {
			promotionAux = copyListOfAllPromotion.take();
		} catch (InterruptedException e1) {
			e1.printStackTrace();
		}

		assertEquals(1, promotionAux.size());
		assertTrue(promotionAux.contains(promotion));
		assertTrue(promotionAux.peek().getDiscountedPrice() == 1.00);

		promotion.setDiscountedPrice(1.20);
		facade.editPromotion(promotion);
		try {
			Thread.sleep(4000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}

		facade.getListPromotion(copyListOfAllPromotion);

		try {
			promotionAux = copyListOfAllPromotion.take();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}

		assertTrue(promotionAux.peek().getDiscountedPrice() == 1.20);
		assertFalse(promotionAux.peek().getDiscountedPrice() == 1.00);

	}