ObjectId decoded = handler.getObjectId(".E1:01D70A64");
assertEquals(new ObjectId("E1", key), decoded);
}
public void testGetSringId_TempWithReplacement() {
IdCoder handler = new IdCoder(runtime.getChannel().getEntityResolver());
byte[] key = new byte[] { 5, 2, 11, 99 };
ObjectId id = new ObjectId("E1", key);
id.getReplacementIdMap().put("ID", 6);
E1 e1 = new E1();
e1.setObjectId(id);
assertEquals("E1:6", handler.getStringId(e1));
}