@Override
  public void define(Context context) {
    NewController controller = context.createController(CONTROLLER)
      .setDescription("List, create, and delete a user's access tokens.")
      .setSince("5.3");

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

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

    underTest.define(context);

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