BleAdvertiser extends AdvertiseCallback { @Override public void onStartSuccess(AdvertiseSettings settingsInEffect) { Log.d(TAG, "onStartSuccess : " + ThreadUtils.currentThreadToString()); setState(State.RUNNING, true); } BleAdvertiser(Listener listener, BluetoothAdapter bluetoothAdapter);   BleAdvertiser(Listener listener, BluetoothAdapter bluetoothAdapter,
                  AdvertiseSettings.Builder builder, DiscoveryManagerSettings settings); void setAdvertiseSettings(AdvertiseSettings advertiseSettings); boolean isStarted(); synchronized boolean start(); synchronized void stop(boolean notifyStateChanged); @Override void onStartFailure(int errorCode); @Override void onStartSuccess(AdvertiseSettings settingsInEffect);  }
@Ignore("https: @Test public void testOnStartSuccess() throws Exception { mBleAdvertiser.onStartSuccess(mMockAdvertiseSettings); verify(mMockListener, times(1)).onIsAdvertiserStartedChanged(true); }