// case instance is already completed
caseInstance.manualComplete();
try {
// when
caseInstance.complete();
fail("It should not be possible to complete an already completed case instance.");
} catch (CaseIllegalStateTransitionException e) {
// then
// the case instance is still completed