public static function createComposerInMemoryPackage($targetDir, $tag)
    {
        $package = new Package('apiaryio/drafter', 'drafter', $tag);
        $package->setTargetDir($targetDir);
        $package->setInstallationSource('source');
        $package->setSourceUrl('https://github.com/apiaryio/drafter');
        $package->setSourceType('git');
        $package->setSourceReference($tag);

        return $package;
    }