'Test reproduce_state with SERVICE_MEDIA_PAUSE.'

def test_reproduce_media_pause(self):

    calls = mock_service(self.hass, 'media_player', SERVICE_MEDIA_PAUSE)
    self.hass.states.set('media_player.test', 'playing')
    state.reproduce_state(self.hass, ha.State('media_player.test', 'paused'))
    self.hass.block_till_done()
    self.assertTrue((len(calls) > 0))
    last_call = calls[(-1)]
    self.assertEqual('media_player', last_call.domain)
    self.assertEqual(SERVICE_MEDIA_PAUSE, last_call.service)
    self.assertEqual(['media_player.test'], last_call.data.get('entity_id'))
