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

    String filename = "data/smiles/test2.smi";
    InputStream ins1 = this.getClass().getClassLoader().getResourceAsStream(filename);
    IteratingSMILESReader reader = new IteratingSMILESReader(ins1, DefaultChemObjectBuilder.getInstance());
    int molCount = 0;
    while (reader.hasNext()) {
        reader.next();
        molCount++;
        if (molCount > 2) break;
    }
    reader.remove();
}