### Question:
MonacoPropertiesFactory { JSONValue getFunctionSuggestion(final String label, final String insertText) { final JSONObject suggestion = makeJSONObject(); final int completionItemKindFunction = 1; final int completionItemInsertTextRuleInsertAsSnippet = 4; suggestion.put(KIND_KEY, makeJSONNumber(completionItemKindFunction)); suggestion.put(INSERT_TEXT_RULES_KEY, makeJSONNumber(completionItemInsertTextRuleInsertAsSnippet)); suggestion.put(LABEL_KEY, makeJSONString(label)); suggestion.put(INSERT_TEXT_KEY, makeJSONString(insertText)); return suggestion; }  JavaScriptObject getConstructionOptions(); JavaScriptObject getThemeData(); JSONArray getRules(); JavaScriptObject getCompletionItemProvider(final MonacoFEELVariableSuggestions variableSuggestions); JavaScriptObject getLanguageDefinition(); JSONValue getTokenizer(); JSONArray getRoot(); JSONArray row(final String pattern,
                         final String name); JavaScriptObject getLanguage(); static final String FEEL_LANGUAGE_ID; static final String FEEL_THEME_ID; }### Answer:
@Test public void testGetFunctionSuggestion() { final String label = "label"; final String insertText = "insertText"; final JSONValue kind = mock(JSONValue.class); final JSONValue insertTextRules = mock(JSONValue.class); final JSONObject expectedSuggestion = mock(JSONObject.class); final JSONString labelString = mock(JSONString.class); final JSONString insertTextString = mock(JSONString.class); doReturn(expectedSuggestion).when(factory).makeJSONObject(); doReturn(kind).when(factory).makeJSONNumber(1); doReturn(insertTextRules).when(factory).makeJSONNumber(4); doReturn(labelString).when(factory).makeJSONString(label); doReturn(insertTextString).when(factory).makeJSONString(insertText); final JSONValue actualSuggestion = factory.getFunctionSuggestion(label, insertText); verify(expectedSuggestion).put("kind", kind); verify(expectedSuggestion).put("insertTextRules", insertTextRules); verify(expectedSuggestion).put("label", labelString); verify(expectedSuggestion).put("insertText", insertTextString); assertEquals(expectedSuggestion, actualSuggestion); }