* Test finding a consumer.
*/
@Test
public void testFindConsumerByServiceNameAndGadgetUrl()
{
OAuthConsumer consumer = sut
.execute(new OAuthConsumerRequest("provider1", "http://www.example.com/gadget2.xml"));
assertTrue(
"No Consumer found for serviceName of 'provider1' and gadget url of http://www.example.com/gadget1.xml",
consumer != null);
// verify loaded attributes of consumer
assertEquals("Incorrect consumer key returned", "key1", consumer.getConsumerKey());
assertEquals("Incorrect consumer secret returned", "secret1", consumer.getConsumerSecret());
assertEquals("Incorrect signature method", "HMAC-SHA1", consumer.getSignatureMethod());
}