@Test
	public void testDefaultLabelMaximumStringLength() throws Exception {

		//
		// default option is to render the string in the default label
		//
		Address operandAddr = addr("01002b58");
		assertOperandText(operandAddr, "s_abcdefghijklmnopqrstuvwxyzABCDEF_01001678");

		//
		// change the option and make sure the rendering updates
		//
		setIntOption(OptionsBasedDataTypeDisplayOptions.MAXIMUM_DEFAULT_LABEL_LENGTH, 5);
		assertOperandText(operandAddr, "s_abcde_01001678");
	}
Test to make sure that the option for restricting the maximum string length works.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/util/viewer/field/OperandFieldFactoryTest.java