@Test(expected = UnsupportedOperationException.class)
public void testRemove() {

    for (MinimalPathIterator i = new MinimalPathIterator(g, "a", "l"); i.hasNext();) {
        Assert.assertTrue(((List) i.next()).size() == 5);
        i.remove();
    }
}