private ODataResponse executeRequest(final ODataHttpMethod method,
final List<String> pathSegments,
final Map<String, String> queryParameters,
final String requestContentType) throws ODataException {
ODataServiceFactory serviceFactory = mock(ODataServiceFactory.class);
final ODataService service = mockODataService(serviceFactory);
when(serviceFactory.createService(any(ODataContext.class))).thenReturn(service);
final ODataRequest request = mockODataRequest(method, pathSegments, queryParameters, requestContentType);
final ODataContextImpl context = new ODataContextImpl(request, serviceFactory);