private void addComment(Program p) {
		int transactionID = p.startTransaction("test");
		try {
			p.getListing()
					.setComment(p.getAddressFactory().getAddress("01000000"),
						CommentType.REPEATABLE, "This is a simple comment change.");
		}
		finally {
			p.endTransaction(transactionID, true);
		}
		p.flushEvents();
		waitForSwing();
	}
Tests for the plugin that manages the tab for multiple open programs.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/progmgr/MultiTabPluginTest.java