@Test
	public void canGetProductsByName() {
		ProductModel addedProduct1 = ProductModel.builder("Night Visions", 1)
				.description("Imagine Dragons").cost(149).rrp(400).build();
		ProductModel addedProduct2 = ProductModel.builder("Night Visions", 1)
				.description("Imagine Dragons").cost(149).rrp(400).build();
		List<ProductModel> products = null;

		try {
			addedProduct1 = new ProductModel(insertProduct(addedProduct1),
					addedProduct1);
			addedProduct2 = new ProductModel(insertProduct(addedProduct2),
					addedProduct2);

			products = pd.getProductByName(addedProduct1.getName());

			deleteProduct(addedProduct1.getId());
			deleteProduct(addedProduct2.getId());
		} catch (WebshopAppException e) {
			e.printStackTrace();
		}
		assertTrue(products.size() == 2
				&& addedProduct1.equals(products.get(0))
				&& addedProduct2.equals(products.get(1)));
	}