@Test
	public void canGetAllCategories() {
		CategoryDAO cd = new CategoryDAO();
		List<CategoryModel> categories = null;
		try {
			categories = cd.getAllCategories();
		} catch (WebshopAppException e) {
			e.printStackTrace();
			fail("Exception");
		}

		boolean findTestCategory = false;
		for (CategoryModel cat : categories) {
			if (categoryTest.equals(cat)) {
				findTestCategory = true;
				break;
			}
		}

		assertTrue(findTestCategory && (countCategories() == categories.size()));
	}