### Question:
ResourceManager extends AbstractService implements IResourceManager, GroupUtilizer, CategoryUtilizer { @Override public int getStatus() { return this.getCacheWrapper().getStatus(); }  void setResourceDAO(IResourceDAO resourceDao); void setCategoryManager(ICategoryManager categoryManager); void setConfigManager(ConfigInterface configManager); void setCacheWrapper(IResourceManagerCacheWrapper cacheWrapper); @Override int getStatus(); void setResourceTypes(Map<String, ResourceInterface> resourceTypes); @Override void init(); @Override ResourceInterface createResourceType(String typeCode); @Override List<String> getResourceTypeCodes(); @Override ResourceInterface addResource(ResourceDataBean bean); @Override List<ResourceInterface> addResources(List<BaseResourceDataBean> beans); @Override void deleteResources(List<ResourceInterface> resources); @Override void addResource(ResourceInterface resource); @Override void updateResource(ResourceDataBean bean); @Override void updateResource(ResourceInterface resource); @Override List<String> searchResourcesId(String type, String text,
            String categoryCode, Collection<String> groupCodes); @Override List<String> searchResourcesId(String type, String text,
            String filename, String categoryCode, Collection<String> groupCodes); @Override List<String> searchResourcesId(FieldSearchFilter[] filters, List<String> categories); @Override List<String> searchResourcesId(FieldSearchFilter[] filters, String categoryCode, Collection<String> groupCodes); @Override List<String> searchResourcesId(FieldSearchFilter[] filters, List<String> categories, Collection<String> groupCodes); @Override SearcherDaoPaginatedResult<String> getPaginatedResourcesId(FieldSearchFilter[] filters, List<String> categories, Collection<String> userGroupCodes); @Override ResourceInterface loadResource(String id); @Override void deleteResource(ResourceInterface resource); @Override void refreshMasterFileNames(); @Override void refreshResourcesInstances(String resourceTypeCode); @Override List<String> getGroupUtilizers(String groupName); @Override List getCategoryUtilizers(String categoryCode); @Override void reloadCategoryReferences(String categoryCode); @Override List getCategoryUtilizersForReloadReferences(String categoryCode); @Override Map<String, List<String>> getMetadataMapping(); @Override void updateMetadataMapping(Map<String, List<String>> mapping);  }### Answer:
@Test public void status_should_be_ready_on_init() { when(cacheWrapper.getStatus()).thenReturn(IResourceManager.STATUS_READY); int status = this.resourceManager.getStatus(); assertThat(status, is(IResourceManager.STATUS_READY)); }