EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet("Employees");
InputStream reqContent = createContentAsStream(EMPLOYEE_1_NULL_ROOM_XML, true);
// execute
XmlEntityConsumer xec = new XmlEntityConsumer();
ODataEntry entry =
xec.readEntry(entitySet, reqContent, EntityProviderReadProperties.init().mergeSemantic(true).build());
// validate
assertNotNull(entry);
Map<String, Object> properties = entry.getProperties();
assertEquals("1", properties.get("EmployeeId"));
assertEquals("Walter Winter", properties.get("EmployeeName"));
ODataEntry room = (ODataEntry) properties.get("ne_Room");
assertNull(room);
}