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