assertEquals(buf.toString(), "{ \"$date\" : \""+format.format(d)+"\"}");
// test DB_OBJECT implicit in preceding tests
// test DB_REF_BASE
DBRefBase dbref = new DBRefBase(null, "test.test", "4d83ab59a39562db9c1ae2af");
buf = new StringBuilder();
serializer.serialize(dbref, buf);
assertEquals(buf.toString(), "{ \"$ref\" : \"test.test\" , \"$id\" : \"4d83ab59a39562db9c1ae2af\"}");
// test ITERABLE