request.setParameter("title", "good book");
request.setParameter("text", "一本好书");
request.setParameter("id", "330");
request.setParameter("price", "79.9");
request.setParameter("sell", "true");
MockHttpServletResponse response = new MockHttpServletResponse();
dispatcherController.dispatcher(request, response);
Book book = (Book) request.getAttribute("book");
Assert.assertThat(book.getText(), is("一本好书"));
Assert.assertThat(book.getPrice(), is(79.9));
Assert.assertThat(book.getId(), is(330));