@Test
	public void testUpdateEditorsPick() {
		Integer testISBN = 800;
		Set<StockBook> books = new HashSet<StockBook>();
		books.add(new ImmutableStockBook(testISBN, "Book Name", "Book Author",
				(float) 100, 1, 0, 0, 0, false));

		try {
			storeManager.addBooks(books);
		} catch (BookStoreException e) {
			e.printStackTrace();
			fail();
		}

		Set<BookEditorPick> editorPicksVals = new HashSet<BookEditorPick>();
		BookEditorPick editorPick = new BookEditorPick(testISBN, true);
		editorPicksVals.add(editorPick);
		try {
			storeManager.updateEditorPicks(editorPicksVals);
		} catch (Exception e) {
			e.printStackTrace();
			fail();
		}

		List<Book> lstEditorPicks = new ArrayList<Book>();
		try {
			lstEditorPicks = client.getEditorPicks(1);
		} catch (Exception e) {
			e.printStackTrace();
			fail();
		}

		Boolean testISBNisInEditorPicks = false;
		for (Book book : lstEditorPicks) {
			if (book.getISBN() == testISBN)
				testISBNisInEditorPicks = true;
		}
		assertTrue("Chk if list contains testISBN!", testISBNisInEditorPicks);

		editorPicksVals.clear();
		editorPick = new BookEditorPick(testISBN, false);
		editorPicksVals.add(editorPick);
		try {
			storeManager.updateEditorPicks(editorPicksVals);
		} catch (BookStoreException e) {
			e.printStackTrace();
			fail();
		}

		Boolean exceptionThrown = false;
		lstEditorPicks = new ArrayList<Book>();
		try {
			lstEditorPicks = client.getEditorPicks(1);
		} catch (BookStoreException e) {
			exceptionThrown = true;
		}
		assertTrue(exceptionThrown);

		exceptionThrown = false;
		editorPicksVals.clear();
		editorPick = new BookEditorPick(-1, false);
		editorPicksVals.add(editorPick);
		try {
			storeManager.updateEditorPicks(editorPicksVals);
		} catch (BookStoreException e) {
			exceptionThrown = true;
		}
		assertTrue(exceptionThrown);

		exceptionThrown = false;
		editorPicksVals.clear();
		editorPick = new BookEditorPick(1000000000, false);
		editorPicksVals.add(editorPick);
		try {
			storeManager.updateEditorPicks(editorPicksVals);
		} catch (BookStoreException e) {
			exceptionThrown = true;
		}
		assertTrue(exceptionThrown);

	}