@Test
public void testMethodPaths_apiAtCustomPath() throws Exception {

  @SuppressWarnings("unused")
  @Api(resource = "foos")
  class Foos {
    public List<Foo> list() { return null; }
    public Foo get(@Named("id") Long id) { return null; }
  }
  String apiConfigSource = g.generateConfig(Foos.class).get("myapi-v1.api");
  ObjectNode root = objectMapper.readValue(apiConfigSource, ObjectNode.class);
  verifyMethodPathAndHttpMethod(root, "myapi.foos.list", "foos", "GET");
  verifyMethodPathAndHttpMethod(root, "myapi.foos.get", "foos/{id}", "GET");
}