@Test
	public void testCorrectDisassembly() throws Exception {
		ProgramBuilder programBuilder = new ProgramBuilder("Test", ProgramBuilder._ARM);
		program = programBuilder.getProgram();
		int txId = program.startTransaction("Add Memory");// leave open until tearDown
		programBuilder.createMemory(".text", "1000", 64).setExecute(true);// initialized
		programBuilder.setBytes("1000", "ff ff ff ea 01 c0 8f e2 1c ff 2f e1 82 08 30 b5 70 47");
		
		programBuilder.disassemble("1000", 11, true);
		programBuilder.analyze();
		
		// should disassemble as ARM, then transition to Thumb
		Address instrAddr = programBuilder.addr("100c");
		Instruction instructionAt = program.getListing().getInstructionAt(instrAddr);
		Assert.assertNotEquals(null,instructionAt);
		
		assertEquals(6, program.getListing().getNumInstructions());
		
		RegisterValue registerValue = program.getProgramContext().getRegisterValue(program.getRegister("TMode"), instrAddr);

		assertEquals(1,registerValue.getUnsignedValue().intValue());
		
		// make sure reference put on operand 0, not mnemonic
		instrAddr = programBuilder.addr("1008");
		instructionAt = program.getListing().getInstructionAt(instrAddr);
		Reference[] operandReferences = instructionAt.getOperandReferences(0);
		assertEquals(1,operandReferences.length);
		assertEquals(0x100cL, operandReferences[0].getToAddress().getOffset());
	}
Test the changing of the ARM/Thumb bit for code flow

 ARM code:
  ADR r12=addr
  bx  r12
addr:
  Thumb code...
  
  Also tests that analysis puts on the correct reference on the r12, and not on the BX
Ghidra/Processors/ARM/src/test.slow/java/ghidra/app/plugin/core/analysis/ArmThumbChangeDisassemblyTest.java