@Test
	public void testSetBaseAddressSegmented() throws Exception {

		ProgramManager pm = tool.getService(ProgramManager.class);
		pm.closeProgram();

		waitForSwing();

		program = build8051();
		pm.openProgram(program.getDomainFile());

		ByteViewerOptionsDialog d = launchByteViewerOptions();
		AddressInput ai = (AddressInput) getInstanceField("addressInputField", d);

		// verify that the text field has the min address since the
		// current offset is 0
		assertEquals(program.getMinAddress(), ai.getAddress());

		runSwing(() -> ai.setText("0000:0c06"));
		pressButtonByText(d.getComponent(), "OK");

		assertEquals(10, plugin.getProvider().getOffset());
	}
Basic tests for the byte view plugin
Ghidra/Features/ByteViewer/src/test.slow/java/ghidra/app/plugin/core/byteviewer/ByteViewerPlugin1Test.java