CDKRMapHandler { public List<Map<Integer, Integer>> getMappings() { return mappings; } CDKRMapHandler(); IAtomContainer getSource(); void setSource(IAtomContainer aSource); IAtomContainer getTarget(); void setTarget(IAtomContainer aTarget); void calculateOverlapsAndReduce(IAtomContainer molecule1, IAtomContainer molecule2, boolean shouldMatchBonds); void calculateOverlapsAndReduceExactMatch(IAtomContainer molecule1, IAtomContainer molecule2,
            boolean shouldMatchBonds); void calculateSubGraphs(IAtomContainer molecule1, IAtomContainer molecule2, boolean shouldMatchBonds); void calculateIsomorphs(IAtomContainer molecule1, IAtomContainer molecule2, boolean shouldMatchBonds); List<Map<Integer, Integer>> getMappings(); void setMappings(List<Map<Integer, Integer>> mappings); boolean isTimeoutFlag(); void setTimeoutFlag(boolean timeoutFlag);  }
@Test public void testGetMappings() throws InvalidSmilesException, CDKException { IChemObjectBuilder builder = DefaultChemObjectBuilder.getInstance(); SmilesParser sp = new SmilesParser(builder); IAtomContainer Molecule1 = sp.parseSmiles("O1C=CC=C1"); IAtomContainer Molecule2 = sp.parseSmiles("O1C=CC=C1"); CDKRMapHandler instance = new CDKRMapHandler(); instance.calculateOverlapsAndReduceExactMatch(Molecule1, Molecule2, true); List<Map<Integer, Integer>> result = instance.getMappings(); Assert.assertEquals(2, result.size()); }