### Question:
BookStore { @Process(actionType = Rate.class) public void rate(Rate rate, Dispatcher.Channel channel) { failSafeGet(rate.getBook()).add(rate.getStars()); channel.ack(); } BookStore(); @Process(actionType = Rate.class) void rate(Rate rate, Dispatcher.Channel channel); double getRating(Book book);  }### Answer:
@Test public void rate() { dispatcher.dispatch(new Rate(book, 1)); dispatcher.dispatch(new Rate(book, 2)); dispatcher.dispatch(new Rate(book, 3)); dispatcher.dispatch(new Rate(book, 4)); dispatcher.dispatch(new Rate(book, 5)); assertEquals(3.0, store.getRating(book), .01); }