### Question:
GlusterDirectoryIterator implements Iterator<GlusterPath> { @Override public void remove() { throw new UnsupportedOperationException(); }  @Override boolean hasNext(); @Override GlusterPath next(); @Override void remove();  }### Answer:
@Test(expected = UnsupportedOperationException.class) public void testRemove() { iterator.remove(); }