@Test
public void getUris() throws Exception {

    mongodbQueue.open();
    mongodbQueue.purge();
    for (CrawleableUri uri : uris) {
        mongodbQueue.addUri(uri);
    }
    Iterator<InetAddress> iter = mongodbQueue.getGroupIterator();
    int count = 0;
    while (iter.hasNext()) {
        List<CrawleableUri> uriList = mongodbQueue.getUris(iter.next());
        for (CrawleableUri uri : uriList) {
            assertTrue(uris.contains(uri));
            ++count;
        }
    }
    assertEquals(uris.size(), count);
    mongodbQueue.close();
}