@Test
	public void testMoveSettings() throws Exception {

		for (int i = 0; i < 10; i++) {
			Data d = getDataAt(i);
			dataMgr.setStringSettingsValue(d, STRING_SETTING_NAME, "red" + i);
			dataMgr.setLongSettingsValue(d, LONG_SETTING_NAME, i);
		}
		dataMgr.moveAddressRange(addr(0), addr(20), 10, TaskMonitor.DUMMY);
		int j = 0;
		for (int i = 20; i < 30; i++, j++) {
			Data d = getDataAt(i);

			String s = dataMgr.getStringSettingsValue(d, STRING_SETTING_NAME);
			assertEquals("red" + j, s);

			Long lvalue = dataMgr.getLongSettingsValue(d, LONG_SETTING_NAME);
			assertEquals(j, lvalue.longValue());
		}
	}
Test setting default and instance settings on Data.
Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/data/SettingsTest.java