public function testGetInstance()
{
TwitterOAuth::setConfig(realpath(__DIR__ . '/ExampleConfig.yaml'));
Request::getInstance()->setCurrentUrl('http://admin.w3.com/batman-is-better-than-superman/?batman=one&superman=two');
// other tests might change the library, which can cause this test to fail
Bridge::setLibrary('\\Webiny\\Component\\TwitterOAuth\\Bridge\\League\\TwitterOAuth');
$instance = TwitterOAuthLoader::getInstance('MyTwitterApp');
$this->assertInstanceOf('\\Webiny\\Component\\TwitterOAuth\\TwitterOAuth', $instance);
}