@Test
	public void testConnectTools() throws Exception {

		PluginTool producer = new DummyTool("ProducerTool");
		PluginTool consumer = new DummyTool("ConsumerTool");

		ToolConnection tc;
		String eventName = null;
		//
		// TEST 1: connect the tools for both events specified
		//

		ToolManager tm = project.getToolManager();
		//
		// setup the tools to connect
		//
		String[] eventNames = producer.getToolEventNames();
		String[] consumedNames = consumer.getConsumedToolEventNames();
		if (eventNames.length == 0 || consumedNames.length == 0 ||
			(eventName = canConnectTools(eventNames, consumedNames)) == null) {
			Assert.fail("Connect Tools Failed: no event names for connection");
		}

		//
		// connect the tools with good event name
		//
		tc = tm.getConnection(producer, consumer);
		tc.connect(eventName);
		if (!tc.isConnected(eventName)) {
			Assert.fail("Connect Tools Failed: " + producer.getName() + " and " +
				consumer.getName() + " failed to CONNECT for event: " + eventName);
		}

		//
		// connect the tools with a bad event name to make sure they don't connect
		//
		try {
			tc.connect(BAD_EVENT_NAME);
		}
		catch (IllegalArgumentException e) {
			// don't do anything since we expect to get an exception here
		}
		if (tc.isConnected(BAD_EVENT_NAME)) {
			Assert.fail("Connect Tools Failed: " + producer.getName() + " and " +
				consumer.getName() + " conncted for BAD EVENT");
		}

		//
		// TEST 2: now disconnect the tools for a goodEventName, since the framework doesn't
		// do anything for disconnecting tools for events they are not connected by
		//
		tc.disconnect(eventName);
		// verify the tools are now disconnected
		if (tc.isConnected(eventName)) {
			Assert.fail("Connect Tools Failed: " + producer.getName() + " and " +
				consumer.getName() + " failed to DISCONNECT for event: " + eventName);
		}
	}
The following tests are performed in this test driver for
the new front end:
(1) connect two running tools by one or more specified events
(2) disconnect one or more specified events between two connected tools
Ghidra/Features/Base/src/test.slow/java/ghidra/framework/project/tool/ConnectToolsTest.java