private Program buildProgram() throws Exception {

		ProgramBuilder builder =
			new ProgramBuilder("Test_Program", (new LanguageID("x86:LE:32:default")).toString());
		builder.createMemory("test_program", "00400000", 7000);

		createFunction(builder, "004010b0", "55 8b ec 51 89 4d fc b8 01 00 00 00 8b e5 5d c3",
			"A_virt1@4010b0", 16);
		createFunction(builder, "004010c0", "55 8b ec 51 89 4d fc b8 02 00 00 00 8b e5 5d c3",
			"A_virt2@4010c0", 16);
		createFunction(builder, "004010d0", "55 8b ec b8 03 00 00 00 5d c3", "A_static1@4010d0",
			10);
		createFunction(builder, "004010e0",
			"55 8b ec 51 89 4d fc c7 05 60 52 42 00 04 00 00 00 8b e5 5d c3", "A_simple1@4010e0",
			21);
		createFunction(builder, "00401100", "55 8b ec 51 89 4d fc b8 05 00 00 00 8b e5 5d c3",
			"B_virt1@401100", 16);
		createFunction(builder, "00401110", "55 8b ec 51 89 4d fc b8 06 00 00 00 8b e5 5d c3",
			"B_virt2@401110", 16);
		createFunction(builder, "00401120", "55 8b ec 51 89 4d fc b8 07 00 00 00 8b e5 5d c3",
			"A_virt2@401120", 16);
		createFunction(builder, "00401130", "55 8b ec 51 89 4d fc b8 08 00 00 00 8b e5 5d c3",
			"B_virt2@401130", 16);
		createFunction(builder, "00401140", "48 83 ec cc",
			"C_virt2@401140", 4);
		createFunction(builder, "00401150", "55 8b ec 51 89 4d fc b8 cc 00 00 00 8b e5 5d c3",
			"C_virt2@401150", 16);

		createBytes(builder, COMPOSITE_DATA_ADDRESS,
			"0e 1f ba 0e 00 b4 09 cd 21 b8 01 4c cd 21 54 68 69 73 20 70 " +
				"72 6f 67 72 61 6d 20 63 61 6e 6e 6f 74 20 62 65 20 72 75 6e " +
				"20 69 6e 20 44 4f 53 20 6d 6f 64 65 2e 0d 0d 0a 24 00 00 00 " + "00 00 00 00");
		createBytes(builder, BYTE_SCALAR_ADDRESS, "c4");
		createBytes(builder, CHAR_SCALAR_ADDRESS, "28");
		createBytes(builder, DWORD_SCALAR_ADDRESS, "08 34 23 cd");
		createBytes(builder, INTEGER3_SCALAR_ADDRESS, "08 34 48");
		createBytes(builder, INTEGER5_SCALAR_ADDRESS, "23 08 34 14 10");
		createBytes(builder, INTEGER6_SCALAR_ADDRESS, "25 79 21 43 08 34");
		createBytes(builder, INTEGER7_SCALAR_ADDRESS, "23 14 22 56 78 08 34");
		createBytes(builder, LONG_SCALAR_ADDRESS, "78 23 1c 34");
		createBytes(builder, LONGLONG_SCALAR_ADDRESS, "78 23 1c 34 08 34 cc fd");
		createBytes(builder, QWORD_SCALAR_ADDRESS, "08 34 23 cd 08 34 cd ef");
		createBytes(builder, SHORT_SCALAR_ADDRESS, "d8 34");
		createBytes(builder, SIGNEDBYTE_SCALAR_ADDRESS, "f8");
		createBytes(builder, SIGNEDDWORD_SCALAR_ADDRESS, "1c 34 89 de");
		createBytes(builder, SIGNEDWORD_SCALAR_ADDRESS, "08 f4");
		createBytes(builder, UNSIGNEDINTEGER3_SCALAR_ADDRESS, "08 34 4d");
		createBytes(builder, UNSIGNEDINTEGER5_SCALAR_ADDRESS, "23 08 34 14 10");
		createBytes(builder, UNSIGNEDINTEGER6_SCALAR_ADDRESS, "25 79 21 43 08 34");
		createBytes(builder, UNSIGNEDINTEGER7_SCALAR_ADDRESS, "25 79 21 43 08 34 ca");
		createBytes(builder, UNSIGNEDLONG_SCALAR_ADDRESS, "08 34 cd ef");
		createBytes(builder, UNSIGNEDLONGLONG_SCALAR_ADDRESS, "08 34 cd ef 08 34 cd ef");
		createBytes(builder, UNSIGNEDSHORT_SCALAR_ADDRESS,
			"d8 34 d8 34 d8 34 d8 34 d8 34 d8 34 d8 34 d8 34");
		createBytes(builder, WORD_SCALAR_ADDRESS, "08 34");

		createDataStringVectorVbase(builder);

		return builder.getProgram();

	}
Function for the case when the min is greater than the max.
In this case, the program expects for there to be 0 entries in the scalar table.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/scalartable/ScalarSearchTest.java