u.put("$set", new BasicDBObject(CommitMongo.KEY_FAILED, Boolean.TRUE));
commitCollection.update(q, u);
FetchNodesByPathAndDepthQuery query = new FetchNodesByPathAndDepthQuery(mongoConnection, "/", thirdRevisionId,
-1);
List<NodeMongo> result = query.execute();
List<Node> actuals = NodeMongo.toNode(result);
Node expected = NodeBuilder
.build(String
.format("{ \"/#%1$s\" : { \"a#%2$s\" : { \"int\" : 1 , \"double\" : 0.123 , \"b#%2$s\" : { \"string\" : \"foo\" , \"e#%2$s\" : { \"array\" : [ 123, null, 123.456, \"for:bar\", true ] } } , \"c#%1$s\" : { \"bool\" : true }, \"d#%2$s\" : { \"null\" : null } } } }",
firstRevisionId, secondRevisionId));