public function testNewScriptFields()
 {
     $script = new Elastica_Script('1 + 2');
     // addScript
     $scriptFields = new Elastica_ScriptFields();
     $scriptFields->addScript('test', $script);
     $this->assertEquals($scriptFields->getParam('test'), $script->toArray());
     // setScripts
     $scriptFields = new Elastica_ScriptFields();
     $scriptFields->setScripts(array('test' => $script));
     $this->assertEquals($scriptFields->getParam('test'), $script->toArray());
     // Constructor
     $scriptFields = new Elastica_ScriptFields(array('test' => $script));
     $this->assertEquals($scriptFields->getParam('test'), $script->toArray());
 }