@Override
    public Single<PhyPair> setPreferredPhy(Set<RxBlePhy> txPhy, Set<RxBlePhy> rxPhy, RxBlePhyOption phyOptions) {
        return Single.fromCallable(() -> {
            final Iterator<RxBlePhy> txPhyIterator = txPhy.iterator();
            final Iterator<RxBlePhy> rxPhyIterator = rxPhy.iterator();
            phy = new PhyPairImpl(
                    txPhyIterator.hasNext() ? txPhyIterator.next() : RxBlePhy.PHY_1M,
                    rxPhyIterator.hasNext() ? rxPhyIterator.next() : RxBlePhy.PHY_1M);
            return phy;
        });
    }
Value used to disable notifications or indicatinos
mockrxandroidble/src/main/java/com/polidea/rxandroidble2/mockrxandroidble/RxBleConnectionMock.java