SubstructureFingerprinter extends AbstractFingerprinter implements IFingerprinter { @Override public int getSize() { return keys.size(); } SubstructureFingerprinter(String[] smarts);  SubstructureFingerprinter(); @Override IBitFingerprint getBitFingerprint(IAtomContainer atomContainer); @Override ICountFingerprint getCountFingerprint(IAtomContainer atomContainer); @Override Map<String, Integer> getRawFingerprint(IAtomContainer iAtomContainer); @Override int getSize(); String getSubstructure(int bitIndex);  }
@Test public void testSize() throws Exception { SubstructureFingerprinter fp = new SubstructureFingerprinter(); Assert.assertEquals(307, fp.getSize()); fp = new SubstructureFingerprinter(StandardSubstructureSets.getFunctionalGroupSMARTS()); Assert.assertEquals(307, fp.getSize()); fp = new SubstructureFingerprinter(StandardSubstructureSets.getCountableMACCSSMARTS()); Assert.assertEquals(142, fp.getSize()); }