public void testEmbeddedArray() {
Object id = null;
Key ownerKey = null;
try {
EmbeddedArrayOwner owner = new EmbeddedArrayOwner();
EmbeddedRelatedBase baseRel1 = new EmbeddedRelatedBase("First Base", 100);
EmbeddedRelatedSub subRel2 = new EmbeddedRelatedSub("Second Base", 200, "Other Type");
EmbeddedRelatedBase[] array = new EmbeddedRelatedBase[]{baseRel1, subRel2};
owner.setArray(array);
pm.currentTransaction().begin();