def test_method_caching(self, mock_create):
        """Test that instance methods cache results correctly."""
        ctx = create_mock_ctx()
        obj = MockOperator()

        store_instance = mock_create.return_value
        store_instance.get.return_value = None  # Simulate cache miss

        result1 = obj.example_method(ctx, 5, 5)
        store_instance.get.return_value = result1  # Simulate cache hit
        result2 = obj.example_method(ctx, 5, 5)

        self.assertEqual(result1, result2)
        self.assertEqual(result1, 10)
        store_instance.set_cache.assert_called_once_with(
            _build_cache_key([5, 5]), result1, ttl=60
        )
Test that instance methods cache results correctly.
tests/unittests/execution_cache/decorator_tests.py