for example
@Test(timeout = 1000L)
void should_not_be_changed_after_deletion() {
given {
event(printmediumId, new Printmedium_was_created(pages: 4, basePDF: aPdfFile))
event(printmediumId, new Printmedium_was_deleted())
}
expectException(PrintmediumWasDeletedException) {
get(Printmedium, printmediumId).rename('New name')
}
}