public function testUpdateComposerSuccess()
{
$repoEntity = new Bundle('KnpLabs/KnpMenuBundle');
$composer = json_decode(file_get_contents(__DIR__ . '/fixtures/encoded-composer.json'), true);
$composer = base64_decode($composer['content']);
$repo = $this->getRepo();
$method = new \ReflectionMethod($repo, 'updateComposerFile');
$method->setAccessible(true);
$method->invokeArgs($repo, array($composer, $repoEntity));
$this->assertEquals($repoEntity->getComposerName(), 'knplabs/knp-menu-bundle');
}