private void setOptionsKeyStroke(DockingAction action, KeyStroke newKs) {

		ToolOptions keyOptions = tool.getOptions(DockingToolConstants.KEY_BINDINGS);

		String name = action.getName() + " (" + action.getOwner() + ")";
		runSwing(() -> keyOptions.setActionTrigger(name, new ActionTrigger(newKs)));
		waitForSwing();

		KeyStroke actual = action.getKeyBinding();
		assertEquals("Key binding was not updated after changing options", newKs, actual);
	}
Interface for tests to signal what is expected of the executor
Ghidra/Features/Base/src/test.slow/java/ghidra/app/tablechooser/TableChooserDialogTest.java