@Override
  public double getDoubleValue() {
    checkValueType(DOUBLE);
    return measure.getDoubleValue();
  }
@Test
  public void fail_with_ISE_when_not_double_value() {
    assertThatThrownBy(() -> {
      MeasureImpl measure = new MeasureImpl(Measure.newMeasureBuilder().create(1));
      measure.getDoubleValue();
    })
      .isInstanceOf(IllegalStateException.class)
      .hasMessage("Value can not be converted to double because current value type is a INT");
  }