def test_annotation_based_routing(self):
        """Test that annotations can be used for team routing"""
        sink = create_sink(teams=["$annotations.owner"])
        finding = create_finding(annotations={"owner": "team-a"})
        teams = sink._OpsGenieSink__get_teams(finding)
        assert teams == ["team-a"]
Test that annotations can be used for team routing
tests/test_opsgenie_sink.py