} catch (DataStorageException expected) {
}
// this should not throw an exception, because now both Ids have been set:
bns.setComputationTaskID(null, null, UniqueIDGenerator.createUniqueID());
bns.writeData(42, "bla", 13.37, "zweiundvierzig");
// now the SimId should be reset and that's why we will expect again an
// exception like "no SimId set":
try {
bns.setExperimentID(UniqueIDGenerator.createUniqueID());