private void assertCompletionsInclude(String command, Collection<String> expectedCompletions) {
		Set<String> completions = getCodeCompletions(command)
				.stream()
				.map(c -> c.getInsertion())
				.collect(Collectors.toSet());

		var missing = new HashSet<String>(expectedCompletions);
		missing.removeAll(completions);
		if (!missing.isEmpty()) {
			Assert.fail("Could't find these completions: " + missing);
		}
	}
Tests for the Ghidra Python Interpreter's code completion functionality.
Ghidra/Features/Jython/src/test.slow/java/ghidra/jython/JythonCodeCompletionTest.java