JsonReader reader = prepareReader(complexPropertyJson);
EdmProperty edmProperty =
(EdmProperty) MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet("Employees").getEntityType()
.getProperty("Location");
EntityProviderReadProperties readProperties = mock(EntityProviderReadProperties.class);
Map<String, Object> cityMappings = new HashMap<String, Object>();
cityMappings.put("PostalCode", String.class);
Map<String, Object> locationMappings = new HashMap<String, Object>();
locationMappings.put("City", cityMappings);
Map<String, Object> mappings = new HashMap<String, Object>();
mappings.put("Location", locationMappings);
when(readProperties.getTypeMappings()).thenReturn(mappings);
final Map<String, Object> result =
new JsonPropertyConsumer().readPropertyStandalone(reader, edmProperty, readProperties);
assertEquals(1, result.size());