@Test
public void testMethodPaths_apiAndMethodsAtCustomPaths() throws Exception {

  @Api(resource = "foo")
  class AcmeCo {
    @ApiMethod(path = "foos")
    public List<Foo> list() { return null; }
    @SuppressWarnings("unused")
    public List<Foo> listAllTheThings() { return null; }
    @ApiMethod(path = "give")
    public Foo giveMeOne() { return null; }
  }
  String apiConfigSource = g.generateConfig(AcmeCo.class).get("myapi-v1.api");
  ObjectNode root = objectMapper.readValue(apiConfigSource, ObjectNode.class);
  verifyMethodPathAndHttpMethod(root, "myapi.foo.list", "foos", "GET");
  verifyMethodPathAndHttpMethod(root, "myapi.foo.listAllTheThings", "foo", "GET");
  verifyMethodPathAndHttpMethod(root, "myapi.foo.giveMeOne", "give", "POST");
}