}
@Test
@SuppressWarnings("all")
public void testAttachmentAddedUpdatedEvent() throws Exception {
AttachmentListener attachmentListener = null;
try {
IFeed feed = new Feed(new URI("inmemory://rss_2_0.xml")); //$NON-NLS-1$
feed = DynamicDAO.save(feed);
IBookMark bookmark = createBookMark(feed);
final int addedCounter[] = new int[] { 0 };
final int updatedCounter[] = new int[] { 0 };
attachmentListener = new AttachmentListener() {
public void entitiesAdded(Set<AttachmentEvent> events) {
addedCounter[0]++;
}
public void entitiesDeleted(Set<AttachmentEvent> events) {}