collection =
(List<ActivityStreamsEntry>)repository.getAll();
// Check that it was actually test1 that was deleted
Iterator it = collection.iterator();
while(it.hasNext()) {
ActivityStreamsEntry ae = (ActivityStreamsEntry)it.next();
assertNotEquals(ae.getId(), deletedId);
}
assertEquals(2, collection.size());
}