//add a bad connection in. The values above should take precedence.
System.setProperty("force.testExternalConnInfoBeforeConnNameLookup.url",
"force://url?oauth_key=ABCDEF&oauth_secret=123456");
connector.setConnectionName("testExternalConnInfoBeforeConnNameLookup");
connector.setTokenRetrievalService(new MockTokenRetrievalService(
partnerSc.getEndPoint(), partnerSc.getSessionId(),
VALID_SFDC_INSTANCEURL, partnerSc.getRefreshToken(), oauthKey, oauthSecret));
assertSecurityContextsAreEqual(partnerSc, connector.refreshAccessToken(REFRESH_TOKEN),
"Security context should match that which the partner api returned");
}