List<OrganizationalEntity> delegates = new ArrayList<OrganizationalEntity>();
delegation.setDelegates( delegates );
delegates.add( groups.get( "crusaders" ) );
delegates.add( groups.get( "knightsTempler" ) );
Deadlines deadlines = new Deadlines();
task1.setDeadlines( deadlines );
List<Deadline> startDeadlines = new ArrayList<Deadline>();
deadlines.setStartDeadlines( startDeadlines );
Deadline deadline = new Deadline();
deadline.setEscalated( true );
startDeadlines.add( deadline );
deadline.setDate( new Date( 10000000 ) );
List<I18NText> docs = new ArrayList<I18NText>();
deadline.setDocumentation( docs );
docs.add( new I18NText( "en-UK",
"Start Deadline documentation" ) );
docs.add( new I18NText( "en-DK",
"Start Termin Dokumentation" ) );
List<Escalation> escalations = new ArrayList<Escalation>();
deadline.setEscalations( escalations );
Escalation escalation = new Escalation();
escalations.add( escalation );
escalation.setName( "My Start Escalation" );
List<BooleanExpression> constraints = new ArrayList<BooleanExpression>();
escalation.setConstraints( constraints );
constraints.add( new BooleanExpression( "mvel",
"true" ) );
List<Notification> notifications = new ArrayList<Notification>();
escalation.setNotifications( notifications );
Notification notification = new Notification();
notifications.add( notification );
notification.setPriority( 1000 );
docs = new ArrayList<I18NText>();
notification.setDocumentation( docs );
docs.add( new I18NText( "en-UK",
"Start Notification documentation" ) );
docs.add( new I18NText( "en-DK",
"Start Anmeldung Dokumentation" ) );
businessAdmin = new ArrayList<OrganizationalEntity>();
notification.setBusinessAdministrators( businessAdmin );
businessAdmin.add( users.get( "bruce" ) );
businessAdmin.add( users.get( "peter" ) );
recipients = new ArrayList<OrganizationalEntity>();
notification.setRecipients( recipients );
recipients.add( users.get( "tony" ) );
recipients.add( users.get( "darth" ) );
names = new ArrayList<I18NText>();
notification.setNames( names );
subjects = new ArrayList<I18NText>();
notification.setSubjects( subjects );
descriptions = new ArrayList<I18NText>();
notification.setDescriptions( descriptions );
names.add( new I18NText( "en-UK",
"This is my start notification name" ) );
names.add( new I18NText( "en-DK",
"Dies ist mein start anmeldung Name" ) );
subjects.add( new I18NText( "en-UK", "This is my start notification subject" ) );
subjects.add( new I18NText( "en-DK", "Das ist mein start anmeldung Thema" ) );
descriptions.add( new I18NText( "en-UK", "This is my start notification description" ) );
descriptions.add( new I18NText( "en-DK", "Das ist mein start anmeldung Beschreibung" ) );
List<Reassignment> reassignments = new ArrayList<Reassignment>();
escalation.setReassignments( reassignments );
Reassignment reassignment = new Reassignment();
reassignments.add( reassignment );
docs = new ArrayList<I18NText>();
reassignment.setDocumentation( docs );
docs.add( new I18NText( "en-UK", "Start Reassignment documentation" ) );
docs.add( new I18NText( "en-DK", "Start Neuzuweisung Dokumentation" ) );
potentialOwners = new ArrayList<OrganizationalEntity>();
reassignment.setPotentialOwners( potentialOwners );
potentialOwners.add( users.get( "bobba" ) );
potentialOwners.add( users.get( "luke" ) );
List<Deadline> endDeadlines = new ArrayList<Deadline>();
deadlines.setEndDeadlines( endDeadlines );
deadline = new Deadline();
deadline.setEscalated( true );
endDeadlines.add( deadline );
deadline.setDate( new Date( 10000000 ) );
docs = new ArrayList<I18NText>();