### Question:
FunctionSearchService implements LiveSearchService<String> { public void clear() { options.clear(); currentFunctions.clear(); } @Inject  FunctionSearchService(final ConditionEditorAvailableFunctionsService availableFunctionsService,
                                 final FunctionNamingService functionNamingService); void init(final ClientSession session); void reload(final String type,
                       final Command onSuccess); void clear(); @Override void search(final String pattern,
                       final int maxResults,
                       final LiveSearchCallback<String> callback); @Override void searchEntry(final String key,
                            final LiveSearchCallback<String> callback); FunctionDef getFunction(final String function);  }### Answer:
@Test public void testClear() { loadTestFunctions(); assertNotNull(searchService.getFunction(FUNCTION1)); searchService.clear(); assertNull(searchService.getFunction(FUNCTION1)); }