private void wrongProperty(final ODataHttpMethod method, final boolean ofComplex, final Boolean key)
throws ODataException {
EdmProperty property = (EdmProperty) (ofComplex ?
edm.getComplexType("RefScenario", "c_Location").getProperty("Country") :
edm.getEntityType("RefScenario", "Employee").getProperty("Age"));
EdmFacets facets = mock(EdmFacets.class);
when(facets.isNullable()).thenReturn(false);
when(property.getFacets()).thenReturn(facets);
List<String> pathSegments;
if (ofComplex) {
pathSegments = createPathSegments(UriType.URI4, false, true);