def METHOD_NAME(self):
    dead_letter_config = {"Type": "SNS", "QueueLogicalId": "MyDLQ"}
    self.schedule_event_source.DeadLetterConfig = dead_letter_config
    with self.assertRaises(InvalidEventException):
        self.schedule_event_source.to_cloudformation(resource=self.state_machine)