public function testDefineWithBlueprint()
{
$blueprint = new Blueprint('user', array('name' => 'testuser'), array(), $this->phactory);
$this->phactory->define('user', $blueprint);
$user = $this->phactory->create('user');
$this->assertEquals('testuser', $user['name']);
}