@Override
    public void alert(Anomaly anomaly, boolean autoFixTriggered, long selfHealingStartTime, AnomalyType anomalyType) {
        super.alert(anomaly, autoFixTriggered, selfHealingStartTime, anomalyType);

        if (_msTeamsWebhook == null) {
            LOG.warn("MSTeams webhook is null, can't send MSTeams self healing notification");
            return;
        }

        Map<String, String> facts = new HashMap<>(Map.of("Anomaly type", anomalyType.toString(),
                "Anomaly", anomaly.toString(),
                "Self Healing enabled", Boolean.toString(_selfHealingEnabled.get(anomalyType)),
                "Auto fix triggered", Boolean.toString(autoFixTriggered)));
        if (_selfHealingEnabled.get(anomalyType)) {
            facts.put("Self Healing start time", utcDateFor(selfHealingStartTime));
        }

        try {
            sendMSTeamsMessage(new MSTeamsMessage(facts), _msTeamsWebhook);
        } catch (IOException e) {
            LOG.warn("ERROR sending alert to MSTeams", e);
        }
    }
@Test
    public void testMSTeamsAlertWithDefaultOptions() {
        _notifier = new MockMSTeamsSelfHealingNotifier(mockTime);
        _notifier._msTeamsWebhook = "https://dummy.webhook.office.com/webhookb2";
        _notifier.alert(failures, false, 1L, KafkaAnomalyType.BROKER_FAILURE);
        assertEquals(1, _notifier.getMSTeamsMessageList().size());
        MSTeamsMessage message = _notifier.getMSTeamsMessageList().get(0);
        assertNotNull(message.getFacts().get("Anomaly"));
        assertEquals("true", message.getFacts().get("Self Healing enabled"));
        assertEquals("false", message.getFacts().get("Auto fix triggered"));

    }