@Override
  public void define(Context context) {
    NewController controller = context.createController(WEBHOOKS_CONTROLLER);
    controller.setDescription("Webhooks allow to notify external services when a project analysis is done");
    controller.setSince("6.2");
    for (WebhooksWsAction action : actions) {
      action.define(controller);
    }
    controller.done();
  }
@Test
  public void test_definition() {
    WebhooksWsAction action = newFakeAction();
    WebhooksWs underTest = new WebhooksWs(action);

    WebService.Context context = new WebService.Context();
    underTest.define(context);

    WebService.Controller controller = context.controller("api/webhooks");
    assertThat(controller).isNotNull();
    assertThat(controller.description()).isNotEmpty();
    assertThat(controller.since()).isEqualTo("6.2");
  }