@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");
}