@@ -0,0 +1,1261 @@
+package com.mongodb;%0A%0Aimport org.testng.annotations.Test;%0A%0A/**%0A *  Tests aspect of the DB - not really driver tests%0A */%0Apublic class DBTests %7B%0A%0A    /**%0A     *   This test will fail now.  Waiting for fix in DB.  Originally done to show the%0A     *   effect of removing %22seen%22 in DBApiLayer%0A     * %0A     * @throws Exception%0A     */%0A    @Test%0A    public void testConcurrentUpdate()  throws Exception %7B%0A%0A        Mongo m = new Mongo(%22com_mongodb_DBTests%22);%0A%0A        DBCollection coll = m.getCollection(%22concurrentUpdate%22);%0A%0A        coll.drop();%0A%0A        for (int i = 0; i %3C 10000; i++) %7B%0A            coll.insert(new BasicDBObject(%22i%22, i).append(%22flarg%22, %22ASDASDASDASDASDA)DA_)ASD_)IASD_OJASD_)AS_D)IAS_D)IAS_D)IA_S)DIA_S)DIA_S)DIA_S)DIA_S)DIA_S)DIA_S)DIA_S)DIA_S)DIA_S)DIA_S)%22));%0A        %7D%0A        int count = 0;%0A%0A        DBCursor c = coll.find();%0A%0A        while(c.hasNext()) %7B%0A%0A            DBObject o = c.next();%0A%0A            if (count++ == 0) %7B%0A                o.put(%22woog%22, %2212-3012-30123-0123-012312312-0312-012-01-203-012-0psaoija-0sid-as0daoisasoidas=0dias=0diapsodjasd%22);%0A                coll.update(new BasicDBObject(%22_id%22, o.get(%22_id%22)), o, false, false);%0A            %7D%0A        %7D%0A%0A        System.out.println(count);%0A        assert(count == 10000);%0A    %7D%0A%0A%0A%7D%0A

Test (not part of regular run) that shows DB update-during-iteration bug