Thread.sleep(7000);
engine.stop();
Multimap<AttributeName, AttributeValue<?>> values = engine.getLatestValues(AttributesManager.DEFAULT_ATTR_GROUP);
assertSame(Value.NULL, Iterables.getFirst(values.asMap().get(new AttributeName("Test.Device", "Test.Attribute", null)), null).getValue());
// this produces NPE because event based attribute has never been updated
// assertEquals("NA", Iterables.getLast(values.values(),null).getValue().get());
engine.shutdown();
}