@Test
public void testGetSubgraphAtomsMaps_IAtomContainer() throws java.lang.Exception {

    int[] result1 = {6, 5, 7, 8, 0};
    int[] result2 = {3, 4, 2, 1, 0};
    IAtomContainer mol = TestMoleculeFactory.makeIndole();
    IAtomContainer frag1 = TestMoleculeFactory.makePyrrole();
    AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(mol);
    AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(frag1);
    CDKHydrogenAdder adder = CDKHydrogenAdder.getInstance(mol.getBuilder());
    adder.addImplicitHydrogens(mol);
    adder = CDKHydrogenAdder.getInstance(frag1.getBuilder());
    adder.addImplicitHydrogens(frag1);
    Aromaticity.cdkLegacy().apply(mol);
    Aromaticity.cdkLegacy().apply(frag1);
    List<List<CDKRMap>> list = CDKMCS.getSubgraphAtomsMaps(mol, frag1, true);
    List<CDKRMap> first = list.get(0);
    for (int i = 0; i < first.size(); i++) {
        CDKRMap rmap = first.get(i);
        Assert.assertEquals(rmap.getId1(), result1[i]);
        Assert.assertEquals(rmap.getId2(), result2[i]);
    }
}