@Test
public void testInit() throws Exception {
FakeGadgetToken t = new FakeGadgetToken();
t.setAppUrl("http://localhost:8080/gadgets/files/samplecontainer/examples/oauth.xml");
OAuthServiceProvider provider = new OAuthServiceProvider("req", "authorize", "access");
ConsumerInfo consumerInfo = store.getConsumerKeyAndSecret(t, "", provider);
OAuthConsumer consumer = consumerInfo.getConsumer();
assertEquals("gadgetConsumer", consumer.consumerKey);
assertEquals("gadgetSecret", consumer.consumerSecret);
assertEquals("HMAC-SHA1", consumer.getProperty("oauth_signature_method"));