FloatMeasurementElement implements MeasurementElement, Serializable { public Float getValue() { return this.value; } FloatMeasurementElement(final Float value); Float getValue(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void getValueShouldReturnCorrectValue() { final float expected = 10.0f; final FloatMeasurementElement element = new FloatMeasurementElement(expected); final float actual = element.getValue(); assertThat(actual).isCloseTo(expected, within(0.001f)); }