null);
}
@Test
public void requestContentTypeFunctionImport() throws Exception {
EdmFunctionImport function = edm.getDefaultEntityContainer().getFunctionImport("MaximalAge");
when(function.getHttpMethod()).thenReturn(ODataHttpMethod.PUT.name());
executeAndValidateRequest(ODataHttpMethod.PUT, createPathSegments(UriType.URI14, false, false), null, null, null);
executeAndValidateRequest(ODataHttpMethod.PUT, createPathSegments(UriType.URI14, false, false), null,
HttpContentType.WILDCARD, null);
checkValueContentType(ODataHttpMethod.PUT, UriType.URI14, null);
checkValueContentType(ODataHttpMethod.PUT, UriType.URI14, HttpContentType.WILDCARD);
function = edm.getDefaultEntityContainer().getFunctionImport("OldestEmployee");
when(function.getHttpMethod()).thenReturn(ODataHttpMethod.POST.name());
executeAndValidateRequest(ODataHttpMethod.POST, createPathSegments(UriType.URI10, false, false), null, null, null);
}