@Test
	public void testFunctionParamsDiff() throws Exception {
	
		// 0x01002cf5: removed parm_2 from p1.
		int transactionID = p1.startTransaction("Test Transaction");
		Function function = p1.getFunctionManager().getFunctionAt(addr(p1, 0x1002cf5));
		function.removeParameter(0);
		p1.endTransaction(transactionID, true);
	
		programDiff = new ProgramDiff(p1, p2);
		programDiff.setFilter(new ProgramDiffFilter(ProgramDiffFilter.FUNCTION_DIFFS));
		AddressSet diffAs = new AddressSet();
		diffAs.addRange(addr(0x01002cf5), addr(0x01002cf5));
		assertEquals(diffAs, programDiff.getDifferences(programDiff.getFilter(), null));
	}
Test that ProgramDiff can determine that function parameters are
different.
Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramDiff3Test.java