@Override
  public void define(Context context) {
    NewController controller = context.createController("api/monitoring")
      .setDescription("Monitoring")
      .setSince("9.3");

    for (MonitoringWsAction action : actions) {
      action.define(controller);
    }

    controller.done();
  }
@Test
  public void define_controller() {
    WebService.Context context = new WebService.Context();

    underTest.define(context);

    WebService.Controller controller = context.controller("api/monitoring");
    assertThat(controller).isNotNull();
    assertThat(controller.description()).isNotEmpty();
    assertThat(controller.since()).isEqualTo("9.3");
    assertThat(controller.actions()).hasSize(1);
  }