### Question:
ContentPageMapperManager extends AbstractService implements IContentPageMapperManager, PageChangedObserver { @Override public void updateFromPageChanged(PageChangedEvent event) { try { this.reloadContentPageMapper(); String pagecode = (null != event.getPage()) ? event.getPage().getCode() : "*undefined*"; _logger.debug("Notified page change event for page '{}'", pagecode); } catch (Throwable t) { _logger.error("Error notifying event", t); } }  @Override void init(); @Override void reloadContentPageMapper(); @Override String getPageCode(String contentId); @Override void updateFromPageChanged(PageChangedEvent event); void setPageManager(IPageManager pageManager); void setCacheWrapper(IContentMapperCacheWrapper cacheWrapper);  }### Answer:
@Test public void testUpdate() throws Throwable { pageMapperManager.updateFromPageChanged(Mockito.any(PageChangedEvent.class)); Mockito.verify(cacheWrapper, Mockito.times(1)).initCache(pageManager); }