public function testAllowActionPostYes()
 {
     $this->_duplicates->expects($this->once())->method('allow')->with('Serial', '12345678');
     $this->dispatch('/console/duplicates/allow/?criteria=Serial&value=12345678', 'POST', array('yes' => 'Yes'));
     $this->assertRedirectTo('/console/duplicates/index/');
     $this->assertContains(array("'%s' is no longer considered duplicate." => '12345678'), $this->_getControllerPlugin('FlashMessenger')->getCurrentSuccessMessages());
 }