@Test
public void testAddMethod() throws Exception {

  assertEquals(0, config.getMethods().size());
  EndpointMethod method = getResultNoParamsMethod();
  ApiMethodConfig methodConfig = config.getMethods().getOrCreate(method);
  Map<EndpointMethod, ApiMethodConfig> methodConfigs = config.getMethods();
  assertEquals(1, methodConfigs.size());
  assertEquals(methodConfig, methodConfigs.get(method));
}