def test_rollback(self):
        """
        Test the rollback method.

        @raise AssertionError: If the test fails.
        """
        cat = self.cat_class('Tom')
        cat_memento = cat.commit()

        cat.name = 'jerry'
        cat.rollback(cat_memento)

        self.assertEqual('Tom', cat.name)

        Test the rollback method.

        @raise AssertionError: If the test fails.
        
tests/behavioral_tests/test_memento.py