}
@Test
public void testFindOAuthTokenInfo() throws Exception {
OAuthTokenInfo dbOAuthTokenInfo = getOAuthTokenInfo();
expect(repository.findOAuthTokenInfo(VALID_USER, APP_URL, NOT_USED, TOKEN_NAME, SERVICE_NAME))
.andReturn(dbOAuthTokenInfo);
replay(repository);
OAuthTokenInfo oAuthTokenInfo = service.findOAuthTokenInfo(VALID_USER, APP_URL, NOT_USED,
TOKEN_NAME, SERVICE_NAME);
assertNotNull(oAuthTokenInfo);
assertEquals(APP_URL, oAuthTokenInfo.getAppUrl());
}