@Test
	public void testCodeBrowser_CopySpecial_WithoutSelection() throws Exception {

		DockingAction copySpecialAction =
			getAction(codeBrowserClipboardProvider, COPY_SPECIAL_ACTION_NAME);
		waitForSwing();
		assertFalse(copySpecialAction.isEnabled());

		codeBrowserPlugin.goTo(new MnemonicFieldLocation(program, addr("1001050")));
		assertTrue(copySpecialAction.isEnabled());

		copySpecial(codeViewerWrapper, copySpecialAction);
		String clipboardContents = getClipboardContents();
		String expectedBytes = "0e";
		assertEquals(expectedBytes, clipboardContents);
	}
Note: This test is sensitive to focus. So, don't click any windows while this test is running.
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/app/plugin/core/clipboard/ClipboardPluginTest.java