private OAuthConsumerStoreService consumerStoreService;
private OAuthTokenInfoService tokenInfoService;
@Test
public void testGetConsumerKeyAndSecret() throws Exception {
OAuthConsumerStore consumerStore = new OAuthConsumerStore();
consumerStore.setGadgetUri(GADGET_URI);
consumerStore.setConsumerKey("gadgetConsumer");
consumerStore.setConsumerSecret(CONSUMER_SECRET);
consumerStore.setKeyType(OAuthConsumerStore.KeyType.HMAC_SYMMETRIC);
OAuthServiceProvider provider = new OAuthServiceProvider(null, null, null);
expect(consumerStoreService.findByUriAndServiceName(GADGET_URI, SERVICE_NAME))
.andReturn(consumerStore);
replay(consumerStoreService);