@Override
  public void define(Context context) {
    NewController controller = context.createController("api/developers")
      .setDescription("Return data needed by SonarLint.")
      .setSince("1.0");

    actions.forEach(action -> action.define(controller));

    controller.done();
  }
@Test
  public void definition() {
    WebService.Context context = new WebService.Context();
    underTest.define(context);
    WebService.Controller controller = context.controller("api/developers");

    assertThat(controller).isNotNull();
    assertThat(controller.description()).isNotEmpty();
    assertThat(controller.since()).isEqualTo("1.0");
    assertThat(controller.actions()).extracting(WebService.Action::key).isNotEmpty();
  }