public function testCreateWhenKeyIsNotDefined()
 {
     $this->branchKeyGenerator->expects($this->once())->method('generate')->with(self::NAME)->will($this->returnValue(self::KEY));
     $branch = $this->factory->create(self::NAME, self::DESCRIPTION);
     $this->assertEquals(self::KEY, $branch->getKey());
 }