entity.validate(entity2);
/* Check raw key binding. */
PersistKeyBinding rawKeyBinding =
new PersistKeyBinding(catalog, keyCls.getName(), true);
Object rawKey = rawKeyBinding.entryToObject(keyEntry);
rawKeyBinding.objectToEntry(rawKey, keyEntry2);
priKey2 = keyBinding.entryToObject(keyEntry2);
assertEquals(priKey, priKey2);
assertEquals(keyEntry, keyEntry2);
}