@Test
public void fail_findService() throws Exception {

  EndpointMethod method = systemService.resolveService("TestEndpoint", "simple");
  ApiMethodConfig methodConfig = new ApiMethodConfig(method, typeLoader,
      apiConfig.getApiClassConfig());
  systemService = SystemService.builder()
      .withDefaults(classLoader)
      .addService(ArrayEndpoint.class, new ArrayEndpoint())
      .build();
  TestMethodHandler handler = new TestMethodHandler(
      ServletInitializationParameters.builder().build(), method,
      methodConfig, systemService, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, RESOURCE);
  handler.getRestHandler().handle(context);
}