### Question:
DataObjectModelManager extends AbstractService implements IDataObjectModelManager { @Override public List<DataObjectModel> getDataObjectModels() { List<DataObjectModel> models = new ArrayList<>(this.getCacheWrapper().getModels()); Collections.sort(models); return models; }  void setDataModelDAO(IDataObjectModelDAO dataModelDAO); void setPageManager(IPageManager pageManager); void setDataObjectManager(IDataObjectManager dataObjectManager); void setCacheWrapper(IDataObjectModelCacheWrapper cacheWrapper); @Override void init(); @Override void addDataObjectModel(DataObjectModel model); @Override void removeDataObjectModel(DataObjectModel model); @Override void updateDataObjectModel(DataObjectModel model); @Override DataObjectModel getDataObjectModel(long dataObjectModelId); @Override List<DataObjectModel> getDataObjectModels(); @Override List<DataObjectModel> getModelsForDataObjectType(String dataType); @Override Map<String, List<IPage>> getReferencingPages(long modelId); @Override SmallDataType getDefaultUtilizer(long modelId); @Override SearcherDaoPaginatedResult<DataObjectModel> getDataObjectModels(List<FieldSearchFilter> filters); @Override List<Long> searchDataObjectModels(FieldSearchFilter[] filters);  }### Answer:
@Test public void testGetContentModels() { List<DataObjectModel> fakeModels = new ArrayList<>(); for (int i = 0; i < 4; i++) { fakeModels.add(createModel(i, "ART")); } when(dataObjectModelManager.getDataObjectModels()).thenReturn(fakeModels); List<DataObjectModel> models = this.dataObjectModelManager.getDataObjectModels(); assertNotNull(models); assertEquals(4, models.size()); }