@Override
  public void define(Context context) {
      NewController controller = context.createController("api/project_badges");
    controller.setDescription("Generate badges based on quality gates or measures");
    controller.setSince("7.1");
    actions.forEach(action -> action.define(controller));
    controller.done();
  }
@Test
  public void test_definition() {
    ProjectBadgesWsAction action = createFakeAction();
    WebService.Context context = new WebService.Context();
    ProjectBadgesWs underTest = new ProjectBadgesWs(Collections.singletonList(action));
    underTest.define(context);

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