Account acc1 = new Account();
acc1.setId("acc1");
acc1.setName("acc1name");
mgr.fillInWithKey(acc1);
EntityWithUUIDKey entity = new EntityWithUUIDKey();
entity.setSomething("something");
entity.setAccount(acc1);
mgr.fillInWithKey(entity);
// mgr.put(entity);
User user = new User();
user.setUuidEntity(entity);
mgr.put(user);
mgr.flush();
User user2 = mgr.find(User.class, user.getId());
Assert.assertNotNull(user2);
Assert.assertEquals(entity.getId(), user2.getUuidEntity().getId());
}