Pattern p = Pattern.compile(".*", Pattern.CASE_INSENSITIVE |
Pattern.DOTALL | Pattern.MULTILINE | Pattern.UNICODE_CASE);
o.put("Regex", p);
Map<?, ?> data = parseBsonObject(o);
assertEquals(new Timestamp(0xAABB, 0xCCDD), data.get("Timestamp"));
assertEquals(new de.undercouch.bson4jackson.types.Symbol("Test"), data.get("Symbol"));
ObjectId oid = (ObjectId)data.get("ObjectId");
assertEquals(Integer.MAX_VALUE, oid.getTime());
assertEquals(-2, oid.getMachine());
assertEquals(Integer.MIN_VALUE, oid.getInc());