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