public void testInsert() throws MongoException, IOException {
Mongo mongo = getMongo();
ReferenceTracking refs = new MongoReferenceTracking(mongo.getDB("test")
.getCollection("v7files.refs"));
Object owner = new DBRef(null, "test", "test");
refs.updateReferences(owner, new StoredContent(new byte[20], 1000));
assertMockMongoFieldContains(new byte[20], "test.v7files.refs", owner,
"refs");
assertMockMongoFieldContains(new byte[20], "test.v7files.refs", owner,
"refHistory");