protected void manipulateTerminatedSettings(boolean testDefaultSetting, boolean insideStruct,
			boolean commonStruct, Data data1, Data data2) throws Exception {

		boolean settingsAreShared =
			testDefaultSetting && (!insideStruct || (insideStruct && commonStruct));

		byte[] bytes1 = data1.getBytes();
		byte[] bytes2 = data2.getBytes();
		DataType dt = data1.getDataType();

		if (FORMAT_TEST_SKIP_LIST.contains(dt.getName())) {
			System.out.println("Settings not tested for data type: " + dt.getName());
			return;
		}
		// none of the following code is ever executed with the current FORMAT_TEST_SKIP_LIST

		String[] settingNames = new String[] { "Termination" };
		String[] terminated = new String[] { "terminated" };
		String[] unterminated = new String[] { "unterminated" };

		if (insideStruct && !commonStruct) {

			gotoLocation(data1.getMinAddress().getOffset(), new int[] { 0 });
			useDefaultSettings();
			changeSettings(true, settingNames, terminated);

			gotoLocation(data2.getMinAddress().getOffset(), new int[] { 0 });
		}

		useDefaultSettings();
		changeSettings(true, settingNames, terminated);

		String caseStr = (testDefaultSetting ? "Default " : "") + "Settings on " +
			(insideStruct ? (commonStruct ? "Common " : "") + "Structure " : "") + dt.getName() +
			": terminated";
//System.out.println(caseStr);

		changeSettings(testDefaultSetting, settingNames, terminated);
		assertEquals(caseStr, getString(bytes1, true), data1.getDefaultValueRepresentation());
		assertEquals(caseStr, getString(bytes2, true), data2.getDefaultValueRepresentation());

		caseStr = (testDefaultSetting ? "Default " : "") + "Settings on " +
			(insideStruct ? (commonStruct ? "Common " : "") + "Structure " : "") + dt.getName() +
			": unterminated";
//System.out.println(caseStr);

		changeSettings(testDefaultSetting, settingNames, unterminated);

		if (settingsAreShared) {
			assertEquals(caseStr, getString(bytes1, false), data1.getDefaultValueRepresentation());
		}
		else {
			assertEquals(caseStr, getString(bytes1, true), data1.getDefaultValueRepresentation());
		}

		assertEquals(caseStr, getString(bytes2, false), data2.getDefaultValueRepresentation());

	}
Test TERMINATED data setting
@param testDefaultSetting if true test default setting, else test instance setting for data2
@param insideStruct data are inside two structure instances
@param commonStruct data structures are the same type
@param data1 data at some location with same type as data2
@param data2 data at current location
@throws Exception
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/data/AbstractDataActionTest.java