assertEquals("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<person CUSTOM_TYPE=\"person\">\n" + " <age CUSTOM_NIL=\"true\"/>\n" + " <name>Mike</name>\n" + " <salary CUSTOM_NIL=\"true\"/>\n" + "</person>\n", output);
Person parsedPerson = (Person) format.parse(output).createObjectWithFilter(null, ERXKeyFilter.filterWithAttributes(), new ERXRestContext(editingContext));
assertNotNull(parsedPerson);
assertEquals("Mike", parsedPerson.name());
assertNull(parsedPerson.age());
assertNull(parsedPerson.salary());
}
finally {
editingContext.unlock();
editingContext.dispose();