public function setUp()
 {
     $manifest = new Manifest(['documents' => [__NAMESPACE__ . '\\TestAsset\\Document' => __DIR__ . '/TestAsset/Document'], 'extension_configs' => ['extension.state' => true, 'extension.accessControl' => true], 'document_manager' => 'testing.documentmanager', 'service_manager_config' => ['factories' => ['testing.documentmanager' => 'Sds\\DoctrineExtensions\\Test\\TestAsset\\DocumentManagerFactory', 'identity' => function () {
         $identity = new RoleAwareIdentity();
         $identity->setIdentityName('toby')->addRole('writer');
         return $identity;
     }]]]);
     $this->documentManager = $manifest->getServiceManager()->get('testing.documentmanager');
 }
 public function setUp()
 {
     $manifest = new Manifest(['service_manager_config' => ['factories' => ['identity' => function () {
         $identity = new RoleAwareIdentity();
         $identity->setIdentityName('toby');
         return $identity;
     }]]]);
     $this->identity = $manifest->getServiceManager()->get('identity');
 }