def METHOD_NAME(self) -> None:
    def test_message(name: str, message: str, expected_return: Optional[str]) -> None:
        mock_client = mock.MagicMock()
        mock_client.full_name = name
        mock_message = {"content": message}
        self.assertEqual(
            expected_return, extract_query_without_mention(mock_message, mock_client)
        )
    test_message("xkcd", "@**xkcd**foo", "foo")
    test_message("xkcd", "@**xkcd** foo", "foo")
    test_message("xkcd", "@**xkcd** foo bar baz", "foo bar baz")
    test_message("xkcd", "@**xkcd**         foo bar baz", "foo bar baz")
    test_message("xkcd", "@**xkcd** 123_) (/&%) +}}}l", "123_) (/&%) +}}}l")
    test_message("brokenmention", "@**brokenmention* foo", None)
    test_message("nomention", "foo", None)
    test_message("Max Mustermann", "@**Max Mustermann** foo", "foo")
    test_message(r"Max (Mustermann)#(*$&12]\]", r"@**Max (Mustermann)#(*$&12]\]** foo", "foo")