'Test reproduce_state with group.'

def test_reproduce_group(self):

    light_calls = mock_service(self.hass, 'light', SERVICE_TURN_ON)
    self.hass.states.set('group.test', 'off', {'entity_id': ['light.test1', 'light.test2']})
    state.reproduce_state(self.hass, ha.State('group.test', 'on'))
    self.hass.block_till_done()
    self.assertEqual(1, len(light_calls))
    last_call = light_calls[(-1)]
    self.assertEqual('light', last_call.domain)
    self.assertEqual(SERVICE_TURN_ON, last_call.service)
    self.assertEqual(['light.test1', 'light.test2'], last_call.data.get('entity_id'))
