new ArrayList<String>(), wavelet);
Map<String, String> restrictions = new HashMap<String, String>();
restrictions.put("url", "http://www.google.com/gadget.xml");
ElementIterator iterator = new BlipIterator.ElementIterator(blip, ElementType.GADGET,
restrictions, -1);
List<Range> hits = new ArrayList<Range>();
while (iterator.hasNext()) {
hits.add(iterator.next());
}
assertEquals(2, hits.size());
assertEquals(1, hits.get(0).getStart());
assertEquals(2, hits.get(0).getEnd());
assertEquals(5, hits.get(1).getStart());