public function test_it_is_registered_and_activated()
{
$plugin = new ChangelogsPlugin();
$this->addComposerPlugin($plugin);
$this->assertSame([$plugin], $this->composer->getPluginManager()->getPlugins());
$this->assertAttributeInstanceOf('Composer\\IO\\IOInterface', 'io', $plugin);
$this->assertAttributeInstanceOf('Pyrech\\ComposerChangelogs\\Outputter', 'outputter', $plugin);
}