ODataRendererUtils { public static boolean isForceExpandParamSet(ODataUri oDataUri) { if (isFunctionCallUri(oDataUri)) { Option<scala.collection.immutable.Map<String, String>> params = getFunctionCallParameters(oDataUri); if (params.isDefined() && !params.get().isEmpty()) { Map<String, String> parametersMap = JavaConverters.mapAsJavaMap(params.get()); if (parametersMap.containsKey(FORCE_EXPAND_PARAM)) { return Boolean.parseBoolean(parametersMap.get(FORCE_EXPAND_PARAM)); } } } return false; } 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 testForceExpandOnFunctions() throws Exception { ODataUri odataUri = new ODataParserImpl() .parseUri("http: entityDataModel); assertFalse(isForceExpandParamSet(odataUri)); odataUri = new ODataParserImpl() .parseUri("http: entityDataModel); assertTrue(isForceExpandParamSet(odataUri)); odataUri = new ODataParserImpl() .parseUri("http: entityDataModel); assertFalse(isForceExpandParamSet(odataUri)); }