@Test 
public void badSmilesLine() throws CDKException {

    IChemObjectBuilder bldr = SilentChemObjectBuilder.getInstance();
    String input = "C\nn1cccc1\nc1ccccc1\n";
    DefaultChemObjectReader cor = new SMILESReader(new StringReader(input));
    IAtomContainerSet mols = cor.read(bldr.newInstance(IAtomContainerSet.class));
    assertThat(mols.getAtomContainerCount(), is(3));
    assertThat(mols.getAtomContainer(0).getAtomCount(), is(1));
    assertThat(mols.getAtomContainer(0).getProperty(IteratingSMILESReader.BAD_SMILES_INPUT),
               nullValue());
    assertThat(mols.getAtomContainer(1).getAtomCount(), is(0));
    assertThat(mols.getAtomContainer(1).getProperty(IteratingSMILESReader.BAD_SMILES_INPUT),
               notNullValue());
    assertThat(mols.getAtomContainer(2).getAtomCount(), is(6));
    assertThat(mols.getAtomContainer(2).getProperty(IteratingSMILESReader.BAD_SMILES_INPUT),
               nullValue());
}