protected long getValue(byte[] bytes, boolean littleEndian) {
		long val = 0;
		if (littleEndian) {
			for (int i = bytes.length - 1; i >= 0; --i) {
				val <<= 8;
				val |= (0x00ff & bytes[i]);
			}
		}
		else {
			for (byte element : bytes) {
				val <<= 8;
				val |= (0x00ff & element);
			}
		}
		return val;
	}
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