Map<String, Object> idMap = new HashMap<String, Object>();
idMap.put("ID", "X;Y");
idMap.put("ABC", 6783463l);
idMap.put("ZZZ", "'_'");
ObjectId id = new ObjectId("x", idMap);
assertEquals("x:6783463:X%3BY:%27_%27", coder.toStringId(id));
ObjectId parsedId = coder.toObjectId("x:6783463:X%3BY:%27_%27");
assertEquals(id, parsedId);
}
}