@Test
	public void testGetMaxAddress2() throws Exception {
		ProgramModule myTreeRoot = listing.getRootModule("MyTree");
		ProgramModule m = myTreeRoot.createModule("Module-A");
		ProgramFragment frag2 = m.createFragment("Frag-2");
		frag2.move(addr(30), addr(40));
		ProgramFragment frag1 = m.createFragment("Fragment-1");
		frag1.move(addr(0), addr(25));

		assertEquals(addr(40), m.getMaxAddress());

		ProgramModule m2 = myTreeRoot.createModule("Module-B");
		ProgramFragment fragment2 = m2.createFragment("Fragment-2");
		fragment2.move(addr(60), addr(70));
		ProgramFragment frag3 = m2.createFragment("Frag-3");
		frag3.move(addr(45), addr(50));
		ProgramFragment frag4 = m2.createFragment("Frag-4");
		frag4.move(addr(20), addr(25));
		assertEquals(addr(70), m2.getMaxAddress());
	}
Test the address iterator starting at a specific address.
Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/module/FragmentTest.java