public Object getControlObject() {
    Employee controlEmployee = new Employee();
    controlEmployee.setId(CONTROL_EMPLOYEE_ID);
    controlEmployee.setFirstName(CONTROL_EMPLOYEE_FIRST_NAME);

    Setting textSetting = new Setting(null, "text()");
    DatabaseMapping firstNameMapping =
        EMPLOYEE_PROJECT.getDescriptor(Employee.class).getMappingForAttributeName("firstName");
    textSetting.setMapping(firstNameMapping);
    textSetting.setObject(controlEmployee);
    textSetting.setValue(CONTROL_EMPLOYEE_FIRST_NAME, false);
    Setting fnSetting = new Setting("urn:example", "first-name");
    fnSetting.addChild(textSetting);
    Setting piSetting = new Setting(null, "personal-info");
    piSetting.addChild(fnSetting);
    controlEmployee.getSettings().add(piSetting);

    return controlEmployee;
  }
 public void xmlToObjectTest(Object testObject) throws Exception {
   Employee testEmployee = (Employee) testObject;
   assertEquals(1, testEmployee.getSettings().size());
   super.xmlToObjectTest(testObject);
 }