@Test
public void atomlistWithAtomContainer() throws Exception {

    try (InputStream in = getClass().getResourceAsStream("query_notatomlist.mol");
         MDLV2000Reader mdlr = new MDLV2000Reader(in)) {
        IAtomContainer mol   = mdlr.read(SilentChemObjectBuilder.getInstance().newAtomContainer());
        IAtom          deref = AtomRef.deref(mol.getAtom(0));
        assertThat(deref, CoreMatchers.<IAtom>instanceOf(QueryAtom.class));
    }
}