public function testFormulateWithFormula()
{
$path = $this->_testPath . '/library_test_plugin';
mkdir($path);
mkdir($path . '/config');
file_put_contents($path . '/config/library_test_plugin.json', json_encode(array('name' => 'library_test_plugin', 'version' => '1.0', 'summary' => 'something', 'sources' => array('phar' => 'http://somewhere.com/download/library_test_plugin.phar.gz'))));
$result = $this->library->formulate($path);
$this->assertTrue($result);
$result = file_exists($path . '/config/library_test_plugin.json');
$this->assertTrue($result);
}