@Override
  public void define(Context context) {
    NewController controller = context.createController("api/server");

    controller.createAction("version")
      .setDescription("Version of SonarQube in plain text")
      .setSince("2.10")
      .setResponseExample(Resources.getResource(this.getClass(), "example-server-version.txt"))
      .setHandler(this);

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

    WebService.Action action = context.controller("api/server").action("version");
    assertThat(action).isNotNull();
    assertThat(action.responseExampleAsString()).isEqualTo("6.3.0.1234");
  }