def METHOD_NAME(self):
    expired_credential = Credentials(**copy(TEST_CREDENTIAL))
    expired_credential.expiry = datetime.utcnow()
    self.assertEqual(expired_credential.valid, False)
    with open(self.service.credentials_path, "wb") as token:
        pickle.dump(expired_credential, token)
    with patch("google.oauth2.reauth.refresh_grant") as mock_refresh_grant:
        access_token = "newaccesstoken"
        refresh_token = "newrefreshtoken"
        expiry = datetime.utcnow() + timedelta(hours=24)
        grant_response = {"id_token": "idtoken"}
        rapt_token = "reauthprooftoken"
        mock_refresh_grant.return_value = (
            access_token, refresh_token, expiry, grant_response, rapt_token
        )
        refreshed_credential = self.service.get_credentials()
    self.assertEqual(refreshed_credential.valid, True)