def METHOD_NAME(self):
    with JPMaQSDownload(
        oauth=True,
        client_id="WRG_CLIENT_ID",
        client_secret="NOT_A_SECRET",
        check_connection=False,
    ) as jpmaqs:
        with self.assertRaises(AuthenticationError):
            jpmaqs.check_connection()
    with DataQueryInterface(
        oauth=True,
        config=Config(
            client_id=random_string(),
            client_secret=random_string(),
        ),
    ) as dq:
        with self.assertRaises(AuthenticationError):
            dq.check_connection()