@Override
  public void execute(Context context) {
    List<MeasureComputerWrapper> wrappers = Arrays.stream(measureComputers).map(ToMeasureWrapper.INSTANCE).toList();
    validateMetrics(wrappers);
    measureComputersHolder.setMeasureComputers(sortComputers(wrappers));
  }
@Test
  public void fail_with_ISE_when_output_metric_is_not_define_by_plugin() {
    assertThatThrownBy(() -> {
      MeasureComputer[] computers = new MeasureComputer[] {newMeasureComputer(array(NEW_METRIC_4), array("unknown"))};
      ComputationStep underTest = new LoadMeasureComputersStep(holder, array(new TestMetrics()), computers);
      underTest.execute(new TestComputationStepContext());
    })
      .isInstanceOf(IllegalStateException.class)
      .hasMessage("Metric 'unknown' cannot be used as an output metric because no plugins declare this metric");
  }