@Test
public void testArrayAttribute() {
ArrayAttribute attribute = new ArrayAttribute(deviceName, name, "string");
attribute.addValue(timestamp, Value.getInstance((Object) new double[]{0.D, 0.1D, 0.2D}), timestamp);
attribute.addValue(timestamp.add(new Timestamp(10)), Value.getInstance((Object) new double[]{0.1D, 0.2D, 0.3D}), timestamp);
attribute.addValue(timestamp.add(new Timestamp(20)), Value.getInstance((Object) new double[]{0.2D, 0.3D, 0.4D}), timestamp);
AttributeValue<Object> value = attribute.getAttributeValue(timestamp.add(new Timestamp(15)));
double[] result = (double[]) value.getValue().get();
assertArrayEquals(new double[]{0.1D, 0.2D, 0.3D}, result, 0.0D);
}