attachments1.add( attachment );
assertTrue( CollectionUtils.equals( attachments2, attachments1 ) );
BlockingDeleteAttachmentResponseHandler deleteCommentResponseHandler = new BlockingDeleteAttachmentResponseHandler();
client.deleteAttachment( taskId, addAttachmentResponseHandler.getAttachmentId(), addAttachmentResponseHandler.getContentId(), deleteCommentResponseHandler );
deleteCommentResponseHandler.waitTillDone( 3000 );
Thread.sleep( 3000 );
getTaskResponseHandler = new BlockingGetTaskResponseHandler();
client.getTask( taskId, getTaskResponseHandler );