Mock listeners and test for DeviceListener