@Test
public void test2() throws Exception {

    SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
    IAtomContainer mol = sp.parseSmiles("c1c(CN)cc(CCNC)cc1C(CO)CC(=O)CCOCCCO");
    AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(mol);
    Aromaticity.cdkLegacy().apply(mol);
    DescriptorValue value = descriptor.calculate(mol);
    IntegerArrayResult result = (IntegerArrayResult) value.getValue();
    Assert.assertEquals(79, result.length());
    Assert.assertEquals(2, result.get(getIndex("khs.sOH")));
    Assert.assertEquals(1, result.get(getIndex("khs.dO")));
    Assert.assertEquals(1, result.get(getIndex("khs.ssO")));
    Assert.assertEquals(1, result.get(getIndex("khs.sNH2")));
    Assert.assertEquals(1, result.get(getIndex("khs.ssNH")));
}