@Test
public void testHBondAcceptorCountDescriptor() throws ClassNotFoundException, CDKException, java.lang.Exception {

    Object[] params = {new Boolean(true)};
    descriptor.setParameters(params);
    SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
    // original molecule O=N(=O)c1cccc2cn[nH]c12 - correct kekulisation will give
    // the same result. this test though should depend on kekulisation working
    IAtomContainer mol = sp.parseSmiles("O=N(=O)C1=C2NN=CC2=CC=C1");
    Assert.assertEquals(1, ((IntegerResult) descriptor.calculate(mol).getValue()).intValue());
}