repo.setTemplate(template);
}
@Test
public void findOAuthTokenInfo(){
OAuthTokenInfo info = new OAuthTokenInfoImpl();
String userId = "1234";
String appUrl = "www.test.com";
String moduleId = "2222";
String tokenName = "token";
String serviceName = "service";
info.setUserId(userId);
info.setAppUrl(appUrl);
info.setModuleId(moduleId);
info.setTokenName(tokenName);
info.setServiceName(serviceName);
expect(template.findOne(query(where("userId").is(userId)
.andOperator(where("appUrl").is(appUrl))
.andOperator(where("moduleId").is(moduleId))
.andOperator(where("tokenName").is(tokenName))
.andOperator(where("serviceName").is(serviceName))