}
public void test_040() {
// original bug: NPE when getting non-existing attribute of entity in construction
try {
UpdatableChronicle e = db.getTopChronicle().edit().createChronicle(SIMPLENAME, false, "junit test 001", null, null);
Attribute<?> a = e.getAttribute("foo", false);
assertNull(a);
a = e.getAttribute("bar", true);
expectException();
} catch (Exception e) {
assertException(e, D.D40114);
}
}