def METHOD_NAME(self):
    with requests_mock.mock() as m:
        m.register_uri("GET", "mock://test.com/", text='{"foo": "bar"')
        response_obj = requests.get("mock://test.com/")
        try:
            JsonResponse(response=response_obj, connection=self.mock_connection)
        except MalformedResponseError:
            pass
        else:
            self.fail("Exception was not thrown")