protected String getString(byte[] bytes, boolean terminated) {
		StringBuffer strBuf = new StringBuffer(bytes.length + 2);
		boolean bytemode = true;
		for (int index = 0; index < bytes.length; index++) {
			char c = (char) (bytes[index]);
			c &= 0xff;
			if (c > 31 && c < 128) {
				if (bytemode) {
					if (index != 0) {
						strBuf.append(',');
					}
					strBuf.append('\"');
				}
				strBuf.append(c);
				bytemode = false;
			}
			else {
				if (!bytemode) {
					strBuf.append('\"');
				}
				if (index != 0) {
					strBuf.append(',');
				}
				strBuf.append(StringFormat.hexByteString((byte) c));
				bytemode = true;
			}
			if (terminated && c == 0) {
				break;
			}
		}
		if (!bytemode) {
			strBuf.append('\"');
		}
		String str = strBuf.toString();
		if ("00".equals(str)) {
			str = "\"\",00";
		}
		return str;
	}
Test MNEMONIC 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