### Question:
MenuView implements View { public void itemClicked(MenuItem item) { Dispatcher.getInstance().menuItemSelected(item); }  @Override void storeChanged(Store store); @Override void render(); void itemClicked(MenuItem item);  }### Answer:
@Test public void testItemClicked() { final var store = mock(Store.class); Dispatcher.getInstance().registerStore(store); final var view = new MenuView(); view.itemClicked(MenuItem.PRODUCTS); verify(store, times(2)).onAction(any(Action.class)); }
@Test public void testItemClicked() throws Exception { final Store store = mock(Store.class); Dispatcher.getInstance().registerStore(store); final MenuView view = new MenuView(); view.itemClicked(MenuItem.PRODUCTS); verify(store, times(2)).onAction(any(Action.class)); }