/**
* @group unit
*/
public function testToArray()
{
$query = new Common('body', 'test query', 0.001);
$query->setLowFrequencyOperator(Common::OPERATOR_AND);
$expected = array('common' => array('body' => array('query' => 'test query', 'cutoff_frequency' => 0.001, 'low_freq_operator' => 'and')));
$this->assertEquals($expected, $query->toArray());
}