@Test
public void testGetWarningMessage() throws Exception {

    IAtomContainer ac = new AtomContainer();
    ac.addAtom(new Atom("Cl"));
    ac.addAtom(new Atom("H"));
    ac.addBond(0, 1, Order.TRIPLE);
    InChIGenerator gen = getFactory().getInChIGenerator(ac);
    Assert.assertNotNull(gen.getMessage());
    Assert.assertTrue(gen.getMessage().contains("Accepted unusual valence"));
}