primeBond
fun primeBond(mac: String = TEST_BLE_MAC, bondState: Int = BluetoothDevice.BOND_NONE, createBondReturns: Boolean = false): ShadowBluetoothDevice(source)
Configure the cached device for mac: its bondState and what createBond() returns.
Defaulting createBondReturns to false reproduces the #5849 entry condition (createBond() returned false → re-check bondState). Note Robolectric's createBond() sets bondState to BONDED only when createBondReturns is true; with false the bondState you set here is what the production re-check reads.