/**
  * Initialize the startup factory to run this tests with the integrated finder (use the integrated proxy).
  */
 public function testBuildProxyDefault()
 {
     $this->initializeFinder('Class2', $this->statedClass2Path);
     Factory\StandardStartupFactory::registerFactory('Teknoo\\States\\Proxy\\Integrated', new Support\MockFactory('my\\Stated\\Class', $this->finder, new \ArrayObject([])));
     $proxy = $this->finder->buildProxy();
     $this->assertInstanceOf('\\Teknoo\\States\\Proxy\\ProxyInterface', $proxy);
     $this->assertInstanceOf('\\Teknoo\\States\\Proxy\\Standard', $proxy);
     $this->assertInstanceOf('Class2\\Class2', $proxy);
 }
 /**
  * Test Factory\StandardStartupFactory::listRegisteredFactory if its return all initialized factory.
  */
 public function testListRegisteredFactoryEmpty()
 {
     Factory\StandardStartupFactory::reset();
     $this->assertEquals(array(), Factory\StandardStartupFactory::listRegisteredFactory());
 }