@Test
public void testRepeatMode_changesOnStatusUpdates() {

  assertThat(castPlayer.getRepeatMode()).isEqualTo(Player.REPEAT_MODE_OFF);
  when(mockMediaStatus.getQueueRepeatMode()).thenReturn(MediaStatus.REPEAT_MODE_REPEAT_SINGLE);
  remoteMediaClientListener.onStatusUpdated();
  verify(mockListener).onRepeatModeChanged(Player.REPEAT_MODE_ONE);
  assertThat(castPlayer.getRepeatMode()).isEqualTo(Player.REPEAT_MODE_ONE);
}