@Override
  public long getLongValue() {
    checkValueType(LONG);
    return measure.getLongValue();
  }
@Test
  public void fail_with_ISE_when_not_long_value() {
    assertThatThrownBy(() -> {
      MeasureImpl measure = new MeasureImpl(Measure.newMeasureBuilder().create("value"));
      measure.getLongValue();
    })
      .isInstanceOf(IllegalStateException.class)
      .hasMessage("Value can not be converted to long because current value type is a STRING");
  }