Entity e = ds.get(TestUtils.createKey(pojo, pojo.getId()));
assertEquals(3, ((List<?>)e.getProperty("strLinkedHashSet")).size());
}
public void testUpdateLinkedHashSet_Reset() throws EntityNotFoundException {
HasMultiValuePropsJPA pojo = new HasMultiValuePropsJPA();
LinkedHashSet<String> set = Utils.newLinkedHashSet("a", "b");
pojo.setStrLinkedHashSet(set);
beginTxn();
em.persist(pojo);
commitTxn();
em.close();
em = emf.createEntityManager();
beginTxn();
pojo = em.find(HasMultiValuePropsJPA.class, pojo.getId());
set = Utils.newLinkedHashSet("a", "b", "zoom");
pojo.setStrLinkedHashSet(set);
commitTxn();
Entity e = ds.get(TestUtils.createKey(pojo, pojo.getId()));
assertEquals(3, ((List<?>)e.getProperty("strLinkedHashSet")).size());
}