ApiMethodConfig { public String getName() { if (name != null) { return name; } else if (apiClassConfig.getResource() != null) { return String.format("%s.%s", apiClassConfig.getResource(), endpointMethodName); } else { if (apiClassConfig.getApiClassJavaSimpleName().isEmpty()) { return String.format("%s", endpointMethodName); } else { return String.format( "%s.%s", apiClassConfig.getApiClassJavaSimpleName(), endpointMethodName); } } } ApiMethodConfig(EndpointMethod method, TypeLoader typeLoader,
      ApiClassConfig apiClassConfig);  ApiMethodConfig(ApiMethodConfig original, ApiClassConfig apiClassConfig); @Override boolean equals(Object o); @Override int hashCode(); ApiClassConfig getApiClassConfig(); ApiConfig getApiConfig(); String getEndpointMethodName(); String getFullJavaName(); ApiParameterConfig addParameter(String name, String description, boolean nullable,
      String defaultValue, TypeToken<?> type); List<ApiParameterConfig> getParameterConfigs(); void setName(String name); String getName(); static String methodNameFormatter(String methodName); String getFullMethodName(); String getDescription(); void setDescription(String description); void setPath(String path); String getPath(); String getCanonicalPath(); void setHttpMethod(String httpMethod); String getHttpMethod(); String getRestfulSignature(); void setAuthLevel(AuthLevel authLevel); AuthLevel getAuthLevel(); void setScopeExpression(AuthScopeExpression scopeExpression); AuthScopeExpression getScopeExpression(); void setAudiences(List<String> audiences); List<String> getAudiences(); void setIssuerAudiences(ApiIssuerAudienceConfig issuerAudiences); ApiIssuerAudienceConfig getIssuerAudiences(); void setClientIds(List<String> clientIds); List<String> getClientIds(); void setAuthenticators(List<Class<? extends Authenticator>> authenticators); List<Class<? extends Authenticator>> getAuthenticators(); void setPeerAuthenticators(List<Class<? extends PeerAuthenticator>> peerAuthenticators); List<Class<? extends PeerAuthenticator>> getPeerAuthenticators(); void setIgnored(boolean ignored); boolean isIgnored(); void setApiKeyRequired(boolean apiKeyRequired); boolean isApiKeyRequired(); Collection<String> getPathParameters(); TypeToken<?> getReturnType(); boolean hasResourceInResponse(); void setMetricCosts(List<ApiMetricCostConfig> metricCosts); List<ApiMetricCostConfig> getMetricCosts();  }
@Test public void testMethodNameWithResource() { assertEquals("resource.getResultNoParams", methodConfig.getName()); }
@Test public void testMethodNameNoResource() { Mockito.when(apiClassConfig.getResource()).thenReturn(null); assertEquals("className.getResultNoParams", methodConfig.getName()); }