*/
public class JPAEmbeddedTest extends JPATestCase {
public void testEmbedded() throws EntityNotFoundException {
HasEmbeddedJPA pojo = new HasEmbeddedJPA();
EmbeddableJPA embedded = new EmbeddableJPA();
embedded.setEmbeddedString("yar");
embedded.setMultiVal(Utils.newArrayList("m1", "m2"));
pojo.setEmbeddable(embedded);
embedded = new EmbeddableJPA();
embedded.setEmbeddedString("yar2");
embedded.setMultiVal(Utils.newArrayList("m3", "m4"));
pojo.setEmbeddable2(embedded);
beginTxn();
em.persist(pojo);
commitTxn();
assertEquals(1, countForClass(HasEmbeddedJPA.class));