}
public void testEmbeddedObjectSerialization() {
final ODocument originalDoc = new ODocument();
final OCompositeKey compositeKey = new OCompositeKey(123, "56", new Date(), new ORecordId("#0:12"));
originalDoc.field("compositeKey", compositeKey);
originalDoc.field("int", 12);
originalDoc.field("val", "test");
originalDoc.save();
final ODocument loadedDoc = database.load(originalDoc.getIdentity(), "*:-1", true);
Assert.assertNotSame(loadedDoc, originalDoc);
final OCompositeKey loadedCompositeKey = loadedDoc.field("compositeKey");
Assert.assertEquals(loadedCompositeKey, compositeKey);
originalDoc.delete();
}