public function testUpdatedJson()
    {
        $vcsRepository = new VcsRepository(array('type' => 'vcs', 'url' => 'https://github.com/vendor/name.git'), new NullIO(), new Config());
        $this->satisFile->setRepository($vcsRepository);
        $updatedSatisFile = new SatisFile('http://localhost:54715', $this->satisFile->asArray());
        $vcsNewRepository = new VcsRepository(array('type' => 'vcs', 'url' => 'https://github.com/othervendor/othername.git'), new NullIO(), new Config());
        $updatedSatisFile->setRepository($vcsNewRepository);
        $this->assertEquals('{
    "name": "default name",
    "homepage": "http://localhost:54715",
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/vendor/name.git"
        },
        {
            "type": "vcs",
            "url": "https://github.com/othervendor/othername.git"
        }
    ],
    "require-all": true,
    "output-html": false,
    "archive": {
        "directory": "dist"
    }
}', $updatedSatisFile->json());
    }