final IAttachment attachment2 = fFactory.createAttachment(null, news2);
attachment2.setLink(new URI("http://www.attachment2.com"));
final IAttachment attachment3 = fFactory.createAttachment(null, news3);
attachment3.setLink(new URI("http://www.attachment3.com"));
final boolean attachmentAdded[] = new boolean[3];
attachmentListener = new AttachmentAdapter() {
@Override
public void entitiesAdded(Set<AttachmentEvent> events) {
for (AttachmentEvent event : events) {
assertFalse("Expected this Event to be no Root Event", event.isRoot());