public void testGetValues_keyOutOfBounds() throws Exception {
Attribute<Double> attr = new NumericAttribute<>(deviceName, name, Interpolation.LAST);
attr.addValue(timestamp, Value.<Double>getInstance(0.1D), timestamp);
attr.addValue(timestamp.add(new Timestamp(10)), Value.<Double>getInstance(0.2D), timestamp);
AttributeValue<Double>[] result = Iterables.toArray(attr.getAttributeValues(timestamp.subtract(new Timestamp(10))), AttributeValue.class);
assertEquals(0.1D, result[0].getValue().get(), 0.07D);
assertEquals(0.2D, result[1].getValue().get(), 0.07D);
}