### Question:
ApiCatalogManager extends AbstractService implements IApiCatalogManager { @Deprecated @Override public ApiMethod getMethod(String resourceName) throws ApsSystemException { return this.getMethod(ApiMethod.HttpMethod.GET, resourceName); }  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 testGetMethod() throws Throwable { when(resourceCacheWrapper.getMasterResource("getService")).thenReturn(createResource(null, "getService")); ApiMethod method = this.apiCatalogManager.getMethod(ApiMethod.HttpMethod.GET, "getService"); assertNotNull(method); assertTrue(method.isActive()); }