catch (UnsupportedOperationException uoe) {
assert false : "Adding arbitrary attributes to a artifact object should be allowed.";
}
try {
b2.addAttribute(BundleHelper.KEY_SYMBOLICNAME, "artifact.42");
assert false : "Changing key attributes in a artifact should not be allowed.";
}
catch (UnsupportedOperationException uoe) {
//expected
}