@Test
	public void testMergeFilter() throws Exception {
		programMerge = new ProgramMergeManager(p1, p2);
		// Check that default filter has all difference types set.
		assertEquals(new ProgramMergeFilter(), programMerge.getMergeFilter());

		// See if we set it to all differences and merging, that is what we get.
		programMerge.setMergeFilter(
			new ProgramMergeFilter(ProgramMergeFilter.ALL, ProgramMergeFilter.MERGE));
		assertEquals(new ProgramMergeFilter(ProgramMergeFilter.ALL, ProgramMergeFilter.MERGE),
			programMerge.getMergeFilter());

		// See if we set it to all differences with no merging, that is what we get.
		programMerge.setMergeFilter(
			new ProgramMergeFilter(ProgramMergeFilter.ALL, ProgramMergeFilter.REPLACE));
		assertEquals(new ProgramMergeFilter(ProgramMergeFilter.ALL, ProgramMergeFilter.REPLACE),
			programMerge.getMergeFilter());

		// See if we set it to specific differences, that is what we get.
		programMerge.setMergeFilter(new ProgramMergeFilter(
			ProgramMergeFilter.CODE_UNITS | ProgramMergeFilter.COMMENTS, ProgramMergeFilter.MERGE));
		assertEquals(
			new ProgramMergeFilter(ProgramMergeFilter.CODE_UNITS | ProgramMergeFilter.COMMENTS,
				ProgramMergeFilter.MERGE),
			programMerge.getMergeFilter());
	}
Test that programMergeFilter works as expected.
Ghidra/Features/Base/src/test.slow/java/ghidra/program/util/ProgramMerge1Test.java