@Test
public void shouldGetValue_whenIdleModeChanged_andDeviceIdled() {

  setUpDeviceIdleMode(true);
  doReturn(false).when(powerManager).isIgnoringBatteryOptimizations(anyString());

  sut.observe().subscribeWith(testObserver);
  testObserver.assertSubscribed().assertEmpty();

  RuntimeEnvironment.application.sendBroadcast(new Intent(ACTION_DEVICE_IDLE_MODE_CHANGED));

  testObserver.assertSubscribed().assertValue(defaultRxNetworkInfo);
}