private GAuthTestUtils() {
}
public static GAuthComponent createComponent() {
SimpleRegistry registry = new SimpleRegistry();
registry.put("customAuthorizeBinding", new GAuthAuthorizeBinding() { }); // subclass
registry.put("customUpgradeBinding", new GAuthUpgradeBinding() { }); // subclass
registry.put("gAuthKeyLoader", new GAuthPk8Loader());
registry.put("gAuthService", new GAuthServiceMock());
CamelContext context = new DefaultCamelContext(registry);
GAuthComponent component = new GAuthComponent();
component.setConsumerKey("testConsumerKey");
component.setConsumerSecret("testConsumerSecret");
component.setCamelContext(context);