@Test
public void testPlayWhenReady_changesOnStatusUpdates() {

  assertThat(castPlayer.getPlayWhenReady()).isFalse();
  when(mockRemoteMediaClient.isPaused()).thenReturn(false);
  remoteMediaClientListener.onStatusUpdated();
  verify(mockListener).onPlayerStateChanged(true, Player.STATE_IDLE);
  assertThat(castPlayer.getPlayWhenReady()).isTrue();
}