@Test
	public void testContainsSet() throws Exception {
		// create a new fragment
		ProgramFragment f3 = root.createFragment("Frag3");
		f3.move(addr(0), addr(0xa));
		f3.move(addr(0x14), addr(0x1e));
		f3.move(addr(0x28), addr(0x32));
		f3.move(addr(0x3c), addr(0x46));

		AddressSet set = new AddressSet();
		set.addRange(addr(0x14), addr(0x1e));
		set.addRange(addr(0x3c), addr(0x46));
		assertTrue(f3.contains(set));

		set = new AddressSet();
		set.addRange(addr(0x28), addr(0x30));
		set.addRange(addr(0x3c), addr(0x6c));
		assertTrue(!f3.contains(set));
	}
Test getting a code unit iterator over a fragment.
Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/FragmentTest.java