@Test(expected = InvalidSmilesException.class)
public void testBadRingClosure2() throws InvalidSmilesException {

    SmilesParser p = new SmilesParser(DefaultChemObjectBuilder.getInstance());
    p.parseSmiles("NC1=CC=C(N)C=C");
}