how to Unit test using XCTest for bluetooth peripherals

I am developing a static library(Objective C) to find near by bluetooth peripherals using 'centralManager:didDiscoverPeripheral' in CoreBluetooth Framework. Im new to unit test and I want to unit test(check retrieved peripheral list is correct) using XCTest. My understanding is we can't test Bluetooth stuff using the iOS simulator. yet I wanted to know is there another way using XCTest to unit test above scenario.


PS: CBPeripheral class does not have a public initializer so I think I can't mock(Create dummy CBPeripherals using 'Category') my peripherals so I guess I have to work with Real devices.