private Program buildProgram() throws Exception {

		ProgramBuilder builder = new ProgramBuilder("TestX86", ProgramBuilder._X86);
		builder.createMemory(".text", Long.toHexString(0x004065e1), 0x6600);

		builder.setBytes("004065e1", "47 57 8d 45 08 50 ff 75 0c e8 84 2c 00 00 83 c4 0c 89 45 fc");
		builder.disassemble("004065e1", 20, true);

		return builder.getProgram();
	}
Test of the instruction pattern search functionality.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/instructionsearch/InstructionSearchTest.java