List<OrganizationalEntity> recipients = new ArrayList<OrganizationalEntity>();
peopleAssignments.setRecipients( recipients );
recipients.add( users.get( "sly" ) );
recipients.add( users.get( "liz" ) );
TaskData taskData = new TaskData();
task1.setTaskData( taskData );
taskData.setActualOwner( users.get( "liz" ) );
taskData.setCreatedBy( users.get( "sly" ) );
taskData.setActivationTime( new Date( 10000000 ) );
taskData.setCreatedOn( new Date( 10000000 ) );
taskData.setExpirationTime( new Date( 10000000 ) );
taskData.setStatus( Status.Created );
taskData.setDocumentAccessType( AccessType.Inline );
taskData.setDocumentType( "mvel" );
taskData.setDocumentContentId( 20 );
List<Attachment> attachments = new ArrayList<Attachment>();
taskData.setAttachments( attachments );
Attachment attachment = new Attachment();
attachment.setAccessType( AccessType.Inline );
attachment.setAttachedAt( new Date( 10000000 ) );
attachment.setAttachedBy( users.get( "liz" ) );
attachment.setContentType( "text" );
attachment.setName( "file.txt" );
attachment.setSize( 5000);
attachment.setAttachmentContentId( 5 );
attachments.add( attachment );
attachment = new Attachment();
attachment.setAccessType( AccessType.Url );
attachment.setAttachedAt( new Date( 10000000 ) );
attachment.setAttachedBy( users.get( "liz" ) );
attachment.setContentType( "text" );
attachment.setName( "file2.txt" );
attachment.setSize( 500 );
attachment.setAttachmentContentId( 3 );
attachments.add( attachment );
List<Comment> comments = new ArrayList<Comment>();
taskData.setComments( comments );
Comment comment = new Comment();
comment.setAddedBy( users.get( "peter" ) );
comment.setAddedAt( new Date( 10000000 ) );
comment.setText( "this is a short comment" );
comments.add( comment );