ODataRendererUtils { public static String buildContextUrlFromOperationCall(ODataUri oDataUri, EntityDataModel entityDataModel, boolean isPrimitive) { String serviceRoot = oDataUri.serviceRoot(); String returnType = ODataUriUtil.getOperationReturnType(oDataUri, entityDataModel); return serviceRoot + "/" + METADATA + "#" + returnType + (isPrimitive ? "" : "/$entity"); } private  ODataRendererUtils(); static String getContextURL(ODataUri oDataUri, EntityDataModel entityDataModel); static String getContextURL(ODataUri oDataUri, EntityDataModel entityDataModel, boolean isPrimitive); static String buildContextUrlFromOperationCall(ODataUri oDataUri, EntityDataModel entityDataModel,
                                                          boolean isPrimitive); static T checkNotNull(T reference); static T checkNotNull(T reference, String message, Object... args); static boolean isForceExpandParamSet(ODataUri oDataUri);  }
@Test public void testBuildContextUrlForActions() throws ODataUriParseException { String uri = "http: ODataUri odataUri = uriParser.parseUri(uri, entityDataModel); String contextUrl = buildContextUrlFromOperationCall(odataUri, entityDataModel, false); TestCase.assertEquals("http: }
@Test public void testBuildContextUrlForFunctions() throws ODataRenderException, ODataUriParseException { String uri = "http: ODataUri odataUri = uriParser.parseUri(uri, entityDataModel); String contextUrl = buildContextUrlFromOperationCall(odataUri, entityDataModel, true); TestCase.assertEquals("http: }