@Test
public void testGetSubgraphMap_IAtomContainer_IAtomContainer() throws Exception {

    String molfile = "data/mdl/decalin.mol";
    String queryfile = "data/mdl/decalin.mol";
    IAtomContainer mol = new AtomContainer();
    IAtomContainer temp = new AtomContainer();
    QueryAtomContainer query1 = null;
    QueryAtomContainer query2 = null;
    InputStream ins = this.getClass().getClassLoader().getResourceAsStream(molfile);
    MDLV2000Reader reader = new MDLV2000Reader(ins, Mode.STRICT);
    reader.read(mol);
    ins = this.getClass().getClassLoader().getResourceAsStream(queryfile);
    reader = new MDLV2000Reader(ins, Mode.STRICT);
    reader.read(temp);
    query1 = QueryAtomContainerCreator.createBasicQueryContainer(temp);
    SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
    IAtomContainer atomContainer = sp.parseSmiles("C1CCCCC1");
    query2 = QueryAtomContainerCreator.createBasicQueryContainer(atomContainer);
    List<CDKRMap> list = CDKMCS.getSubgraphMap(mol, query1, true);
    Assert.assertEquals(11, list.size());
    list = CDKMCS.getSubgraphMap(mol, query2, true);
    Assert.assertEquals(6, list.size());
}