public void testPrecision_SameValue() {
Attribute<Double> attribute = new NumericAttribute<Double>(deviceName, name, "double", Interpolation.LINEAR, BigDecimal.ONE);
Value<Double> value = Value.getInstance(20.3);
attribute.addValue(timestamp, value, timestamp);
attribute.addValue(timestamp.add(new Timestamp(10)), Value.getInstance(20.1), timestamp);
attribute.addValue(timestamp.add(new Timestamp(20)), Value.getInstance(20.5), timestamp);
assertSame(value, attribute.getAttributeValue().getValue());
double result = attribute.getAttributeValue().getValue().get();
assertEquals(20.3, result);