def METHOD_NAME(self):
    stats = {"key": "value"}
    expected_stats = copy.deepcopy(stats)
    expected_stats["mendix_runtime"] = {"sessions": {}}
    self.metrics_emitter._get_munin_stats = Mock(
        side_effect=Exception("M2EE Exception!")
    )
    stats = self.metrics_emitter._inject_user_session_metrics(stats)
    self.assertTrue(self.metrics_emitter._get_munin_stats.called)
    self.assertEqual(stats, expected_stats)