BitVectorIterator implements Iterator<Boolean> { @Override public void remove() { throw new UnsupportedOperationException(); } BitVectorIterator(BitVector bitVector); @Override boolean equals(Object o); @Override int hashCode(); @Override boolean hasNext(); @Override Boolean next(); @Override void remove();  }
@Test(expected = UnsupportedOperationException.class) public void testUnsupportedOperationException() { new BitVectorImpl().iterator().remove(); }