/**
  * @test
  */
 public function it_creates_a_doctrine_table_gateway()
 {
     $this->assertFalse(TableGatewayListenerAggregate::isAttached());
     $tableGateway = Bootstrap::getServiceManager()->get('sqlconnector:::processing_test_users');
     $this->assertInstanceOf('Prooph\\Link\\SqlConnector\\Service\\DoctrineTableGateway', $tableGateway);
     $this->assertTrue(TableGatewayListenerAggregate::isAttached());
 }
 protected function tearDown()
 {
     UsersFixture::dropTable($this->getDbalConnection());
     TableGatewayListenerAggregate::resetAttachedFlag();
     $this->messageReceiver->reset();
 }