@Test
public void setAudioAttributes_withNullUsage_doesNotManageAudioFocus() {

  // Ensure that NULL audio attributes -> don't manage audio focus
  assertThat(
          audioFocusManager.setAudioAttributes(
              /* audioAttributes= */ null, /* playWhenReady= */ false, Player.STATE_IDLE))
      .isEqualTo(PLAYER_COMMAND_DO_NOT_PLAY);
  assertThat(
          audioFocusManager.setAudioAttributes(
              /* audioAttributes= */ null, /* playWhenReady= */ true, Player.STATE_READY))
      .isEqualTo(PLAYER_COMMAND_PLAY_WHEN_READY);
  ShadowAudioManager.AudioFocusRequest request =
      Shadows.shadowOf(audioManager).getLastAudioFocusRequest();
  assertThat(request).isNull();
}