@Override
 public void waitForPairing(PairingListener listener) {
   Preconditions.checkNotNull(listener);
   logger.info("Waiting for test notification to pair device");
   pairingListener = listener;
   waitingForPairing.set(true);
 }
 @Override
 public void cancelWaitForPairing() {
   logger.info("Pairing stopped");
   waitingForPairing.set(false);
   pairingListener = null;
 }