+
+ @Test
+ public void savePerson() {
+ TeamOrPersonBase teamOrPerson = Person.NewInstance();
+ teamOrPerson.setTitleCache("New Person", true);
+ teamOrPerson = (TeamOrPersonBase)CdmApplicationState.getCurrentAppConfig().getAgentService().merge(teamOrPerson);
+ //CdmApplicationState.getCurrentAppConfig().getAgentService().saveOrUpdate(teamOrPerson);
+
+ Person person = (Person)teamOrPerson;
+// person.setFirstname("Some");
+// CdmApplicationState.getCurrentAppConfig().getAgentService().merge(teamOrPerson);
+
+ person = (Person) CdmApplicationState.getCurrentAppConfig().getAgentService().find(person.getUuid());
+ person.setFirstname("Some");
+ CdmApplicationState.getCurrentAppConfig().getAgentService().merge(teamOrPerson);
+ }