@Test
public void testDictionaryClass() {

    DescriptorEngine engine = new DescriptorEngine(IMolecularDescriptor.class,
            DefaultChemObjectBuilder.getInstance());
    String className = "org.openscience.cdk.qsar.descriptors.molecular.TPSADescriptor";
    DescriptorSpecification specRef = new DescriptorSpecification(
            "http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#tpsa", this.getClass().getName(),
            "The Chemistry Development Kit");
    String[] dictClass = engine.getDictionaryClass(className);
    Assert.assertEquals(2, dictClass.length);
    Assert.assertEquals("topologicalDescriptor", dictClass[0]);
    Assert.assertEquals("electronicDescriptor", dictClass[1]);
    dictClass = engine.getDictionaryClass(specRef);
    Assert.assertEquals(2, dictClass.length);
    Assert.assertEquals("topologicalDescriptor", dictClass[0]);
    Assert.assertEquals("electronicDescriptor", dictClass[1]);
}