Entity e = ds.get(TestUtils.createKey(pojo, pojo.getId()));
assertEquals("c", ((List<?>)e.getProperty("array")).get(0));
}
public void testEmbeddable() throws EntityNotFoundException {
Person p = new Person();
p.setName(new Name());
p.getName().setFirst("jimmy");
p.getName().setLast("jam");
p.setAnotherName(new Name());
p.getAnotherName().setFirst("anotherjimmy");
p.getAnotherName().setLast("anotherjam");
makePersistentInTxn(p, TXN_START_END);
assertNotNull(p.getId());
beginTxn();
p = pm.getObjectById(Person.class, p.getId());
p.getName().setLast("not jam");
p.getName().setFirst("not jimmy");
commitTxn();
Entity entity = ds.get(TestUtils.createKey(p, p.getId()));
assertNotNull(entity);
assertEquals("not jimmy", entity.getProperty("first"));
assertEquals("not jam", entity.getProperty("last"));
assertEquals("anotherjimmy", entity.getProperty("anotherFirst"));
assertEquals("anotherjam", entity.getProperty("anotherLast"));