private void verify_toMeasure_returns_value_for_LEVEL_Metric(Level expectedLevel) {
   Optional<Measure> measure =
       underTest.toMeasure(new MeasureDto().setData(expectedLevel.name()), SOME_LEVEL_METRIC);
   assertThat(measure).isPresent();
   assertThat(measure.get().getValueType()).isEqualTo(Measure.ValueType.LEVEL);
   assertThat(measure.get().getLevelValue()).isEqualTo(expectedLevel);
 }
 @Test
 public void toMeasure_returns_value_for_LEVEL_Metric() {
   for (Level level : Level.values()) {
     verify_toMeasure_returns_value_for_LEVEL_Metric(level);
   }
 }