### Question:
WearCellularMediator implements
        PowerTracker.Listener,
        UserAbsentRadiosOffObserver.Listener,
        SignalStateDetector.Listener { @Override public void onSignalStateChanged(int signalState) { mSignalState = signalState; updateRadioPower(); } WearCellularMediator(
            Context context,
            TelephonyManager telephonyManager,
            WearCellularMediatorSettings settings,
            PowerTracker powerTracker,
            UserAbsentRadiosOffObserver userAbsentRadiosOffObserver); @VisibleForTesting  WearCellularMediator(
            Context context,
            ContentResolver contentResolver,
            TelephonyManager telephonyManager,
            WearCellularMediatorSettings wearCellularMediatorSettings,
            PowerTracker powerTracker,
            UserAbsentRadiosOffObserver userAbsentRadiosOffObserver,
            SignalStateDetector signalStateDetector); void onBootCompleted(boolean proxyConnected); @Override void onPowerSaveModeChanged(); @Override void onChargingStateChanged(); @Override void onDeviceIdleModeChanged(); void updateActivityMode(boolean activeMode); @Override void onUserAbsentRadiosOffChanged(boolean isEnabled); void updateProxyConnected(boolean isProxyConnected); void updateNumHighBandwidthRequests(int numHighBandwidthRequests); void updateNumCellularRequests(int numCellularRequests); void updateDetectorState(boolean signalDetectorAllowed); @Override void onSignalStateChanged(int signalState); void dump(IndentingPrintWriter ipw); static final String TAG; static final String CELL_AUTO_SETTING_KEY; static final int CELL_AUTO_OFF; static final int CELL_AUTO_ON; static final int CELL_AUTO_SETTING_DEFAULT; static final Uri CELL_AUTO_SETTING_URI; static final Uri CELL_ON_URI; static final int RADIO_ON_STATE_UNKNOWN; static final int RADIO_ON_STATE_ON; static final int RADIO_ON_STATE_OFF; }### Answer:
@Test public void testNoSignalWithProxyConnected_disablesRadio() { mMediator.onSignalStateChanged(SignalStateModel.STATE_NO_SIGNAL); verifyPowerChange(WearCellularMediator.MSG_DISABLE_CELL, WearCellularMediator.Reason.OFF_NO_SIGNAL); }
@Test public void testUnstableSignalWithProxyConnected_disablesRadio() { mMediator.onSignalStateChanged(SignalStateModel.STATE_UNSTABLE_SIGNAL); verifyPowerChange(WearCellularMediator.MSG_DISABLE_CELL, WearCellularMediator.Reason.OFF_UNSTABLE_SIGNAL); }