### Question:
ContentModelManager extends AbstractService implements IContentModelManager { @Override public void updateContentModel(ContentModel model) throws ApsSystemException { try { this.getContentModelDAO().updateContentModel(model); this.getCacheWrapper().updateContentModel(model); this.notifyContentModelChanging(model, ContentModelChangedEvent.UPDATE_OPERATION_CODE); } catch (Throwable t) { logger.error("Error updating a content model", t); throw new ApsSystemException("Error updating a content model", t); } }  void setContentModelDAO(IContentModelDAO contentModelDao); void setPageManager(IPageManager pageManager); void setContentManager(IContentManager contentManager); void setCacheWrapper(IContentModelManagerCacheWrapper cacheWrapper); @Override void init(); @Override void addContentModel(ContentModel model); @Override void removeContentModel(ContentModel model); @Override void updateContentModel(ContentModel model); @Override ContentModel getContentModel(long contentModelId); @Override List<ContentModel> getContentModels(); @Override List<ContentModel> getModelsForContentType(String contentType); @Override List<ContentModelReference> getContentModelReferences(long modelId); @Deprecated @Override Map<String, List<IPage>> getReferencingPages(long modelId); @Override SmallContentType getDefaultUtilizer(long modelId);  }### Answer:
@Test public void testUpdateContentModel() throws Throwable { ContentModel contentModel = new ContentModel(); contentModel.setId(99); contentModel.setContentType("ART"); contentModel.setDescription("Descr_Prova"); contentModel.setContentShape("<h2></h2>"); assertNull(this.contentModelManager.getContentModel(99)); this.contentModelManager.addContentModel(contentModel); Mockito.verify(cacheWrapper, Mockito.times(1)).addContentModel(Mockito.any(ContentModel.class)); Mockito.verify(contentModelDAO, Mockito.times(1)).addContentModel(Mockito.any(ContentModel.class)); ContentModel contentModelNew = new ContentModel(); contentModelNew.setId(contentModel.getId()); contentModelNew.setContentType("RAH"); contentModelNew.setDescription("Descr_Prova"); contentModelNew.setContentShape("<h1></h1>"); this.contentModelManager.updateContentModel(contentModelNew); Mockito.verify(cacheWrapper, Mockito.times(1)).updateContentModel(Mockito.any(ContentModel.class)); Mockito.verify(contentModelDAO, Mockito.times(1)).updateContentModel(Mockito.any(ContentModel.class)); }