query.addOrdering(EmbedEntity1.NAME_PROPERTY, SortOrder.ASCENDING);
List<?> results = context.performQuery(query);
assertEquals(2, results.size());
EmbedEntity1 o1 = (EmbedEntity1) results.get(0);
assertEquals("n1", o1.getName());
Embeddable1 e11 = o1.getEmbedded1();
Embeddable1 e12 = o1.getEmbedded2();
assertNotNull(e11);
assertNotNull(e12);
assertEquals("e1", e11.getEmbedded10());
assertEquals("e2", e11.getEmbedded20());
assertEquals("e3", e12.getEmbedded10());
assertEquals("e4", e12.getEmbedded20());
EmbedEntity1 o2 = (EmbedEntity1) results.get(1);
assertEquals("n2", o2.getName());
Embeddable1 e21 = o2.getEmbedded1();
Embeddable1 e22 = o2.getEmbedded2();
assertNotNull(e21);
assertNotNull(e22);
assertEquals("ex1", e21.getEmbedded10());
assertEquals("ex2", e21.getEmbedded20());