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

    String filename = "data/hin/gravindex.hin";
    InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);
    ISimpleChemObjectReader reader = new HINReader(ins);
    ChemFile content = (ChemFile) reader.read((ChemObject) new ChemFile());
    List cList = ChemFileManipulator.getAllAtomContainers(content);
    IAtomContainer ac = (IAtomContainer) cList.get(0);
    addImplicitHydrogens(ac);
    IntegerResult retval = (IntegerResult) descriptor.calculate(ac).getValue();
    //logger.debug(retval.intValue());
    Assert.assertEquals(254, retval.intValue(), 0);
}