public function testCreateBasicFactory()
 {
     Configuration::$adapter = $this->getMockBuilder('\\Carpenter\\Adapter\\ArrayAdapter')->setMethods(['persist'])->getMock();
     $expected = ['username' => 'Bob', 'password' => 'password1'];
     Configuration::$adapter->expects($this->once())->method('persist')->will($this->returnValue($expected));
     $user = Factory::create('BasicUser');
     $this->assertEquals($expected, $user);
 }