@Override
  public void define(Context context) {
    NewController controller = context.createController("api/plugins");
    controller.setDescription("Manage the plugins on the server, including installing, uninstalling, and upgrading.")
      .setSince("5.2");

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

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

    underTest.define(context);

    WebService.Controller controller = context.controller("api/plugins");
    assertThat(controller).isNotNull();
    assertThat(controller.since()).isEqualTo("5.2");
    assertThat(controller.description()).isNotEmpty();
    assertThat(controller.actions()).extracting("key").containsOnly("dummy");
  }