@Test
	public void testArmThumbThunk() throws Exception {

		builder = new ProgramBuilder("thunk", ProgramBuilder._ARM);

		builder.setBytes("0x00015d9c", "00 00 00 00 03 b4 01 48 01 90 01 bd ad 5d 01 00 10 bd");
		builder.setRegisterValue("TMode", "0x00015da0", "0x00015da0", 1);
		builder.disassemble("0x00015da0", 27, true);

		
		builder.createFunction("0x00015da0");
		builder.createLabel("0x15dac", "chdir");
		builder.createFunction("0x15dac");

		program = builder.getProgram();
		
		builder.applyDataType("0x00015d9c", DWordDataType.dataType);

		analyze();
		
		
		Instruction instruction = program.getListing().getInstructionAt(builder.addr(0x15dac));
		assertNotNull(instruction);
		

		Function isThunk = program.getFunctionManager().getFunctionAt(builder.addr(0x00015da0));
		assertEquals(true, isThunk.isThunk());
		assertEquals("chdir", isThunk.getName());
	}
This tests the forcing of a function to be a thunk with CreateThunkFunctionCmd
Tests that the Function start analyzer will create a thunk given the thunk tag on a matching function
That the ARM Thumb language has a thunking pattern.

That the thunking function can be found with the constant reference analyzer
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/app/cmd/function/CreateFunctionThunkTest.java