### Question:
ContentModelManager extends AbstractService implements IContentModelManager { @Override public List<ContentModel> getContentModels() { List<ContentModel> models = new ArrayList<ContentModel>(this.getCacheWrapper().getContentModels()); Collections.sort(models); return models; }  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 testGetContentModels() { List<ContentModel> fakeModels = new ArrayList<>(); for (int i = 0; i < 4; i++) { fakeModels.add(createContentModel(i, "ART")); } when(contentModelManager.getContentModels()).thenReturn(fakeModels); List<ContentModel> models = this.contentModelManager.getContentModels(); assertThat(models, is(not(nullValue()))); assertThat(models.size(), is(4)); }