public void innerEntryWithOptionalNavigationProperty() throws Exception {
// prepare
EntryCallback callback = new EntryCallback();
EntityProviderReadProperties readProperties =
EntityProviderReadProperties.init().mergeSemantic(false).callback(callback).build();
EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet("Employees");
// modify edm for test case (change multiplicity to ZERO_TO_ONE)
EdmType navigationType = mock(EdmType.class);
when(navigationType.getKind()).thenReturn(EdmTypeKind.ENTITY);
EdmNavigationProperty navigationProperty = mock(EdmNavigationProperty.class);
when(navigationProperty.getName()).thenReturn("ne_Team");
when(navigationProperty.getType()).thenReturn(navigationType);
when(navigationProperty.getMultiplicity()).thenReturn(EdmMultiplicity.ZERO_TO_ONE);
when(entitySet.getEntityType().getProperty("ne_Team")).thenReturn(navigationProperty);
EdmEntitySet targetEntitySet = MockFacade.getMockEdm().getDefaultEntityContainer().getEntitySet("Teams");
when(entitySet.getRelatedEntitySet(navigationProperty)).thenReturn(targetEntitySet);
// execute
JsonEntityConsumer xec = new JsonEntityConsumer();
InputStream contentBody = getFileAsStream(EMPLOYEE_WITH_INLINE_TEAM);