procdef.participantById("CurrentUser");
} catch (InvalidIdException exc) {
gotException = true;
}
assertTrue(gotException);
Participant part = procdef.participantById("currentUser");
assertTrue(part.getId().equals("currentUser"));
assertTrue(part.getName().equals("Aktueller Benutzer"));
assertTrue(part.getParticipantType()
.equals(Participant.ParticipantType.HUMAN));
assertTrue(procdef.participants().size() == 1);