@Test
public void testConcurrentModification() {

	HashMap<String, String> map = Maps.newHashMap();
	map.put("a", "a");
	map.put("b", "b");
	Iterator<?> iterator = IteratorUtils.toIterator(map);
	assertTrue(iterator.hasNext());
	iterator.next();
	assertTrue(iterator.hasNext());
	map.clear();
	assertTrue(iterator.hasNext());
	try {
		iterator.next();
		fail();
	} catch (ConcurrentModificationException e) {
		// Success
	}
}