@Test
public void testRemove() {

    final ListIterator<Object> iter = new ListIterator<Object>(Collections.emptyList());
    assertThatThrownBy(iter::remove)
            .isInstanceOf(UnsupportedOperationException.class)
            .hasMessage("removal not supported");
}