public void TestReferenceNonOid()
{
Database tests = mongo["tests"];
IMongoCollection refs = tests["refs"];
Document doc = new Document().Append("_id",123).Append("msg", "this has a non oid key");
refs.Insert(doc);
DBRef rf = new DBRef("refs",123);
Document recv = tests.FollowReference(rf);
Assert.IsNotNull(recv);
Assert.IsTrue(recv.Contains("msg"));
Assert.AreEqual(recv["_id"], (long)123);
}