### Question:
HeaderPartIterator implements Iterator<String> { @Override public void remove() { throw new UnsupportedOperationException(ERROR_OPERATION_NOT_SUPPORTED); } private  HeaderPartIterator(final String str); @Override boolean hasNext(); @Override String next(); @Override void remove();  }### Answer:
@Test public void removeIsNotSupported() throws Exception { final Iterator<String> sut = createSut("block1"); try { sut.remove(); fail("Should not support remove"); } catch (final UnsupportedOperationException e) { } }