EndpointsMethodHandler { public String getRestPath() { return restPath; } EndpointsMethodHandler(ServletInitializationParameters initParameters,
      ServletContext servletContext, EndpointMethod endpointMethod, ApiMethodConfig methodConfig,
      SystemService systemService); String getRestMethod(); String getRestPath(); DispatcherHandler<EndpointsContext> getRestHandler();  }
@Test public void rootMethodHandler() throws Exception { EndpointMethod method = systemService.resolveService("TestEndpoint", "root"); ApiMethodConfig methodConfig = new ApiMethodConfig(method, typeLoader, apiConfig.getApiClassConfig()); methodConfig.setPath("/root"); TestMethodHandler handler = new TestMethodHandler( ServletInitializationParameters.builder().build(), method, methodConfig, systemService, 200); assertThat(handler.getRestPath()).isEqualTo("root"); }