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

    IAtomicDescriptor descriptor = new AtomValenceDescriptor();
    SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
    IAtomContainer mol = sp.parseSmiles("CCCl"); //
    Assert.assertEquals(7, ((IntegerResult) descriptor.calculate(mol.getAtom(2), mol).getValue()).intValue());
}