private byte[] getBytesAsHex(String str, int len) throws NumberFormatException {

		byte[] bytes = new byte[len / 2];
		for (int i = 0; i < len; i += 2) {
			String sub = str.substring(i, i + 2);// get byte substring
			// turn substring into hex Integer
			Integer iByte = Integer.valueOf(sub, 16);
			bytes[i / 2] = iByte.byteValue();// turn hex Integer into byte
		}

		return bytes;
	}
A large timeout period that is usually not reached
Ghidra/Features/Base/src/test.slow/java/ghidra/app/script/GhidraScriptAskMethodsTest.java