/**
  * @expectedException \Exception
  */
 public function testSyncDataException()
 {
     $connectionMock = $this->getMock('Magento\\Framework\\DB\\Adapter\\AdapterInterface', [], [], '', false);
     $this->_resourceMock->expects($this->any())->method('getConnection')->will($this->returnValue($connectionMock));
     $this->_resourceMock->expects($this->any())->method('getTableName')->will($this->returnArgument(0));
     $connectionMock->expects($this->once())->method('rollback');
     $this->model->syncData();
 }