def METHOD_NAME(self) -> None:
    sample_dict = {
        'type': 'exploration',
        'id': '1234'
    }
    returned_activity_object = activity_domain.ActivityReference.from_dict(
        sample_dict)
    returned_activity_dict = returned_activity_object.to_dict()
    self.assertEqual(sample_dict, returned_activity_dict)
    self.assertEqual(sample_dict['type'], returned_activity_dict['type'])
    self.assertEqual(sample_dict['id'], returned_activity_dict['id'])