public function testRegenerateDestroy() {
$storage = $this
->getStorage();
$storage
->start();
$id = $storage
->getId();
$storage
->getBag('attributes')
->set('legs', 11);
$storage
->regenerate(true);
$this
->assertNotEquals($id, $storage
->getId());
$this
->assertEquals(11, $storage
->getBag('attributes')
->get('legs'));
}