}
@Test
public void test()
{
AppUser user = new AppUser();
user.setId("id");
PhoneDirectory properties = new PhoneDirectory();
user.setPropertyContainer(properties);
em.persist(user);
em.clear();
AppUser result = em.find(AppUser.class, "id");
Assert.assertNotNull(result);
Assert.assertNotNull(result.getId());
Assert.assertNotNull(result.getPropertyKeys());
Assert.assertFalse(result.getPropertyKeys().isEmpty());
Assert.assertEquals(1, result.getPropertyKeys().size());
Assert.assertNotNull(result.getNickName());
Assert.assertFalse(result.getNickName().isEmpty());
Assert.assertEquals(1, result.getNickName().size());
Assert.assertTrue(result.getNickName().contains("kk"));
Assert.assertNotNull(result.getFriendList());
Assert.assertFalse(result.getFriendList().isEmpty());
Assert.assertEquals(2, result.getFriendList().size());
Assert.assertNotNull(result.getTags());
Assert.assertFalse(result.getTags().isEmpty());
Assert.assertEquals(1, result.getTags().size());
Assert.assertEquals("yo", result.getTags().get(0));
PhoneDirectory propertyContainer = result.getPhoneDirectory();
Assert.assertNotNull(propertyContainer);
Assert.assertEquals("MyPhoneDirectory", propertyContainer.getPhoneDirectoryName());
Assert.assertNotNull(propertyContainer.getContactMap());
Assert.assertFalse(propertyContainer.getContactMap().isEmpty());
Assert.assertEquals(1, propertyContainer.getContactMap().size());