def METHOD_NAME(self):
    """Ensure that creating an instance of a deprecated class emits a warning."""
    with warnings.catch_warnings(record=True) as w:
        warnings.simplefilter("always")
        _ = self.DeprecatedClass()  # Instantiate the deprecated class
        self.assertEqual(len(w), 1)