@Test public void notatomList() throws Exception {

    try (InputStream in = getClass().getResourceAsStream("query_notatomlist.mol");
         MDLV2000Reader mdlr = new MDLV2000Reader(in)) {
        IQueryAtomContainer mol       = mdlr.read(new QueryAtomContainer(SilentChemObjectBuilder.getInstance()));
        IAtom               deref     = AtomRef.deref(mol.getAtom(0));
        assertThat(deref, CoreMatchers.<IAtom>instanceOf(QueryAtom.class));
        QueryAtom           queryAtom = (QueryAtom) deref;
        Expr expr = queryAtom.getExpression();
        Expr expected = new Expr(Expr.Type.ELEMENT, 9) // F
                               .or(new Expr(Expr.Type.ELEMENT, 7)) // N
                               .or(new Expr(Expr.Type.ELEMENT, 8)); // O
        expected = expected.negate();
        assertThat(expr, is(expected));
    }
}