### Question:
ApiCatalogManager extends AbstractService implements IApiCatalogManager { @Deprecated @Override public Map<String, ApiMethod> getMethods() throws ApsSystemException { Map<String, ApiMethod> map = new HashMap<>(); List<ApiMethod> list = this.getMethods(ApiMethod.HttpMethod.GET); for (int i = 0; i < list.size(); i++) { ApiMethod apiMethod = list.get(i); map.put(apiMethod.getResourceName(), apiMethod); } return map; }  void setServiceCacheWrapper(IApiServiceCacheWrapper cacheWrapper); void setResourceCacheWrapper(IApiResourceCacheWrapper resourceCacheWrapper); void setLocationPatterns(String locationPatterns); void setApiCatalogDAO(IApiCatalogDAO apiCatalogDAO); @Override void init(); @Override ApiMethod getRelatedMethod(String showletCode); @Override @Deprecated Map<String, ApiMethod> getRelatedShowletMethods(); @Override Map<String, ApiMethod> getRelatedWidgetMethods(); @Override void updateMethodConfig(ApiMethod apiMethod); @Override void resetMethodConfig(ApiMethod apiMethod); @Deprecated @Override ApiMethod getMethod(String resourceName); @Override ApiMethod getMethod(ApiMethod.HttpMethod httpMethod, String resourceName); @Override ApiMethod getMethod(ApiMethod.HttpMethod httpMethod, String namespace, String resourceName); @Deprecated @Override Map<String, ApiMethod> getMethods(); @Override List<ApiMethod> getMethods(ApiMethod.HttpMethod httpMethod); @Override Map<String, ApiResource> getResources(); @Override ApiResource getResource(String namespace, String resourceName); @Override ApiService getApiService(String key); @Override Map<String, ApiService> getServices(); @Override Map<String, ApiService> getServices(String tag); @Override void saveService(ApiService service); @Override void deleteService(String key); @Override void updateService(ApiService service); static final String DEFAULT_LOCATION_PATTERN; }### Answer:
@Test public void testGetMethods() throws Throwable { when(resourceCacheWrapper.getMasterResources()).thenReturn(createResources()); List<ApiMethod> methods = this.apiCatalogManager.getMethods(ApiMethod.HttpMethod.GET); assertNotNull(methods); assertTrue(methods.size() > 0); }